Uses of Class
adams.data.image.transformer.crop.AbstractCropAlgorithm
-
Packages that use AbstractCropAlgorithm Package Description adams.data.image.transformer adams.data.image.transformer.crop adams.flow.transformer.locateobjects -
-
Uses of AbstractCropAlgorithm in adams.data.image.transformer
Fields in adams.data.image.transformer declared as AbstractCropAlgorithm Modifier and Type Field Description protected AbstractCropAlgorithmCropping. m_Algorithmthe crop algorithm to use.Methods in adams.data.image.transformer that return AbstractCropAlgorithm Modifier and Type Method Description AbstractCropAlgorithmCropping. getAlgorithm()Returns the crop algorithm.Methods in adams.data.image.transformer with parameters of type AbstractCropAlgorithm Modifier and Type Method Description voidCropping. setAlgorithm(AbstractCropAlgorithm value)Sets the crop algorithm. -
Uses of AbstractCropAlgorithm in adams.data.image.transformer.crop
Subclasses of AbstractCropAlgorithm in adams.data.image.transformer.crop Modifier and Type Class Description classBinaryCropTurns image into binary (ie black and white) image and determines the largest rectangle encompassing a (white) object in the middle to crop to.
When looking for a black object, check the 'invert' option.classCropBackgroundPicks the background at the specified anchor position and crops to the smallest possible rectangle.classNoCropDummy crop algorithm, performs no cropping at all.classRectangleCropTurns the image into one with only two indexed colors and then determines from all four sides the locations where the color changes from the one on the edge.classRelativeCropCrops the image to specified width and height.classSimpleCropSimple cropping algorithm that uses a fixed window.classThresholdedCropSimple cropping algorithm that assumes a good contrast between background and foreground.
Algorithm:
- create histogram of grayscale image
- remove counts from histogram that fall below noise-level
- determine left-most (L) and right-most (R) non-zero count
- divide region between L and R into two and determine highest peak in each (LP and RP)
- 8-bit threshold is halfway between LP and RP
- determine first pixel that is above threshold from top, bottom, left and right, which is used for the crop
-
Uses of AbstractCropAlgorithm in adams.flow.transformer.locateobjects
Fields in adams.flow.transformer.locateobjects declared as AbstractCropAlgorithm Modifier and Type Field Description protected AbstractCropAlgorithmCroppedLocator. m_Cropthe crop algorithm to use.protected AbstractCropAlgorithmXScreenMaskLocator. m_CropCropping algorithm.Methods in adams.flow.transformer.locateobjects that return AbstractCropAlgorithm Modifier and Type Method Description AbstractCropAlgorithmCroppedLocator. getCrop()Returns the crop algorithm.AbstractCropAlgorithmXScreenMaskLocator. getCrop()Get cropping algorithm.Methods in adams.flow.transformer.locateobjects with parameters of type AbstractCropAlgorithm Modifier and Type Method Description voidCroppedLocator. setCrop(AbstractCropAlgorithm value)Sets the crop algorithm.voidXScreenMaskLocator. setCrop(AbstractCropAlgorithm value)Set cropping algorithm.
-