Class AlignMTB

  • public class AlignMTB
    extends AlignExposures
    This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations. It is invariant to exposure, so exposure values and camera response are not necessary. In this implementation new image regions are filled with zeros. For more information see CITE: GW03 .
    • Constructor Detail

      • AlignMTB

        protected AlignMTB​(long addr)
    • Method Detail

      • __fromPtr__

        public static AlignMTB __fromPtr__​(long addr)
      • process

        public void process​(java.util.List<Mat> src,
                            java.util.List<Mat> dst,
                            Mat times,
                            Mat response)
        Description copied from class: AlignExposures
        Aligns images
        process in class AlignExposures
        src - vector of input images
        dst - vector of aligned images
        times - vector of exposure time values for each image
        response - 256x1 matrix with inverse camera response function for each pixel value, it should have the same number of channels as images.
      • process

        public void process​(java.util.List<Mat> src,
                            java.util.List<Mat> dst)
        Short version of process, that doesn't take extra arguments.
        src - vector of input images
        dst - vector of aligned images
      • calculateShift

        public Point calculateShift​(Mat img0,
                                    Mat img1)
        Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
        img0 - first image
        img1 - second image
        automatically generated
      • shiftMat

        public void shiftMat​(Mat src,
                             Mat dst,
                             Point shift)
        Helper function, that shift Mat filling new regions with zeros.
        src - input image
        dst - result image
        shift - shift value
      • computeBitmaps

        public void computeBitmaps​(Mat img,
                                   Mat tb,
                                   Mat eb)
        Computes median threshold and exclude bitmaps of given image.
        img - input image
        tb - median threshold bitmap
        eb - exclude bitmap
      • getMaxBits

        public int getMaxBits()
      • setMaxBits

        public void setMaxBits​(int max_bits)
      • getExcludeRange

        public int getExcludeRange()
      • setExcludeRange

        public void setExcludeRange​(int exclude_range)
      • getCut

        public boolean getCut()
      • setCut

        public void setCut​(boolean value)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        finalize in class AlignExposures