| Modifier and Type | Class and Description |
|---|---|
| public static interface | RasterRangesUtils.RangesOutput
Abstraction of a sink for ranges. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Comparator | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| public static boolean | Returns: true if the output succeeded, false otherwiseimage to be segmented in non black or non-transparent ranges raster, RasterRangesUtils.destination of the non null ranges outOutputs ranges of occupied pixels. |
| public static boolean | Returns: true if the output succeeded, false otherwiseinteger values of the pixels of an image pixels, int width of the image (in pixels) w, int height of the image h, int mask used to select which bits are used in a pixel to check its occupied status. 0xff000000 would only take the alpha layer into account, for instance. occupationMask, RasterRangesUtils.where to output all the contiguous ranges of non occupied pixels outOutput the occupied values of an integer-pixels image as ranges of contiguous values. |
| public static boolean | Returns: true if the output succeeded, false otherwisebyte-packed binary bits of an image binaryBits, int width of the image (in pixels) w, int height of the image h, RasterRangesUtils.Output the non-null values of a binary image as ranges of contiguous values. |
| COMPARATOR | back to summary |
|---|---|
| private static final Comparator<Object> COMPARATOR | |
| subColMasks | back to summary |
|---|---|
| private static final int[] subColMasks | |
| RasterRangesUtils | back to summary |
|---|---|
| public RasterRangesUtils() | |
| mergeRects | back to summary |
|---|---|
| private static Set | |
| outputOccupiedRanges | back to summary |
|---|---|
| public static boolean outputOccupiedRanges(Raster raster, RasterRangesUtils. Outputs ranges of occupied pixels. In a raster that has an alpha layer, a pixel is occupied if its alpha value is not null. In a raster without alpha layer, a pixel is occupied if it is not completely black.
| |
| outputOccupiedRanges | back to summary |
|---|---|
| public static boolean outputOccupiedRanges(int[] pixels, int w, int h, int occupationMask, RasterRangesUtils. Output the occupied values of an integer-pixels image as ranges of contiguous values. A pixel is considered occupied if the bitwise AND of its integer value with the provided occupationMask is not null.
| |
| outputOccupiedRangesOfBinaryPixels | back to summary |
|---|---|
| public static boolean outputOccupiedRangesOfBinaryPixels(byte[] binaryBits, int w, int h, RasterRangesUtils. Output the non-null values of a binary image as ranges of contiguous values.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the output succeeded, false otherwisex coordinate of the top-left corner of the range x, int y coordinate of the top-left corner of the range y, int width of the range w, int height of the range h)Output a rectangular range. |
| outputRange | back to summary |
|---|---|
| public boolean outputRange(int x, int y, int w, int h) Output a rectangular range.
| |