java.lang.Object
imagingbook.common.mser.components.PixelMap
Basically a 2D array of pixels which holds all necessary information about the image geometry, keeps track of which
pixels have been visited and knows how to access neighboring pixels (currently 4-neighborhood only).
- Version:
- 2022/11/19
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPixel
(int u, int v) Returns thePixelMap.Pixel
instance at the specified position.Returns a new 1D array (i.e., a "flattened" vector in row-first order) ofPixelMap.Pixel
elements, e.g., for sorting pixels by value.
-
Field Details
-
width
Image width -
height
Image height
-
-
Constructor Details
-
PixelMap
Constructor.- Parameters:
ip
- source image
-
-
Method Details
-
getPixel
Returns thePixelMap.Pixel
instance at the specified position.- Parameters:
u
- horizontal positionv
- vertical position- Returns:
- the
PixelMap.Pixel
instance
-
getPixelVector
Returns a new 1D array (i.e., a "flattened" vector in row-first order) ofPixelMap.Pixel
elements, e.g., for sorting pixels by value.- Returns:
- a 1D array of pixels
-