Crop module

hello,

when using the crop module and not removing the empty rows, will it

a) just put the values to zero, or
b) put them to zero and mask the image such that those values will not be considered for future computations?

thanks!!

Tischi

from below part of the code of the crop module i would guess that it actually does mask the image.
is that correct?

  if self.remove_rows_and_columns == RM_NO:
        cropped_pixel_data = orig_image.pixel_data.copy()
        if cropped_pixel_data.ndim == 3:
            cropped_pixel_data~cropping,:]=0
        else:
            cropped_pixel_data[np.logical_not(cropping)] = 0
        if mask == None:
            mask = cropping
    else:
        internal_cropping = self.remove_rows_and_columns == RM_ALL
        cropped_pixel_data = cpi.crop_image(orig_image.pixel_data,
                                            cropping,
                                            internal_cropping)
        if mask == None:
            mask = cpi.crop_image(cropping, cropping, internal_cropping)
        if cropped_pixel_data.ndim == 3:
            cropped_pixel_data~mask,:] = 0
        else:
            cropped_pixel_data~mask] = 0

Hi Tischi,

Yes, option (b) is the correct answer.
-Mark