[]
        
(Showing Draft Content)

CSJ2K.j2k.roi.encoder.ROI.-ctor

ROI Constructor

ROI(int, ImgReaderPGM)

Constructor for ROI with arbitrary shape

Declaration
public ROI(int comp, ImgReaderPGM maskPGM)
Parameters
Type Name Description
int comp

The component the ROI belongs to

ImgReaderPGM maskPGM

ImgReaderPGM containing the ROI

ROI(int, int, int, int, int)

Constructor for rectangular ROIs

Declaration
public ROI(int comp, int ulx, int uly, int w, int h)
Parameters
Type Name Description
int comp

The component the ROI belongs to

int ulx
int uly
int w

width of ROI

int h

height of ROI

ROI(int, int, int, int)

Constructor for circular ROIs

Declaration
public ROI(int comp, int x, int y, int rad)
Parameters
Type Name Description
int comp

The component the ROI belongs to

int x

x-coordinate of center of ROI

int y

y-coordinate of center of ROI

int rad