Package jj2000.j2k.roi.encoder
Class SubbandROIMask
java.lang.Object
jj2000.j2k.roi.encoder.SubbandROIMask
- Direct Known Subclasses:
SubbandRectROIMask
This abstract class describes the ROI mask for a single subband. Each
object of the class contains the mask for a particular subband and also has
references to the masks of the children subbands of the subband
corresponding to this mask.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintHeight of the subband maskprotected SubbandROIMaskThe subband masks of the child HHprotected SubbandROIMaskThe subband masks of the child HLprotected booleanFlag indicating whether this subband mask is a node or notprotected SubbandROIMaskThe subband masks of the child LHprotected SubbandROIMaskThe subband masks of the child LLintHorizontal uper-left coordinate of the subband maskintVertical uper-left coordinate of the subband maskintWidth of the subband mask -
Constructor Summary
ConstructorsConstructorDescriptionSubbandROIMask(int ulx, int uly, int w, int h) The constructor of the SubbandROIMask takes the dimensions of the subband as parameters -
Method Summary
Modifier and TypeMethodDescriptiongetSubbandRectROIMask(int x, int y) Returns a reference to the Subband mask element to which the specified point belongs.
-
Field Details
-
ll
The subband masks of the child LL -
lh
The subband masks of the child LH -
hl
The subband masks of the child HL -
hh
The subband masks of the child HH -
isNode
protected boolean isNodeFlag indicating whether this subband mask is a node or not -
ulx
public int ulxHorizontal uper-left coordinate of the subband mask -
uly
public int ulyVertical uper-left coordinate of the subband mask -
w
public int wWidth of the subband mask -
h
public int hHeight of the subband mask
-
-
Constructor Details
-
SubbandROIMask
public SubbandROIMask(int ulx, int uly, int w, int h) The constructor of the SubbandROIMask takes the dimensions of the subband as parameters- Parameters:
ulx- The upper left x coordinate of corresponding subbanduly- The upper left y coordinate of corresponding subbandw- The width of corresponding subbandh- The height of corresponding subband
-
-
Method Details
-
getSubbandRectROIMask
Returns a reference to the Subband mask element to which the specified point belongs. The specified point must be inside this (i.e. the one defined by this object) subband mask. This method searches through the tree.- Parameters:
x- horizontal coordinate of the specified point.y- horizontal coordinate of the specified point.
-