[]
        
(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)
Public Sub New(comp As Integer, maskPGM As ImgReaderPGM)
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)
Public Sub New(comp As Integer, ulx As Integer, uly As Integer, w As Integer, h As Integer)
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)
Public Sub New(comp As Integer, x As Integer, y As Integer, rad As Integer)
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