[]
        
(Showing Draft Content)

CSJ2K.j2k.roi.encoder.ROIScaler.parseROIs

parseROIs Method

parseROIs(string, int, List<object>)

This function parses the values given for the ROIs with the argument -Rroi. Currently only circular and rectangular ROIs are supported.

       <p>A rectangular ROI is indicated by a 'R' followed the coordinates for
       the upper left corner of the ROI and then its width and height.</p><p>A circular ROI is indicated by a 'C' followed by the coordinates of
       the circle center and then the radius.</p><p>Before the R and C values, the component that are affected by the
       ROI are indicated.</p>
Declaration
protected static List<object> parseROIs(string roiopt, int nc, List<object> roiVector)
Parameters
Type Name Description
string roiopt

The info on the ROIs

int nc

number of components

List<object> roiVector

The vcector containing the ROI parsed from the cmd line

Returns
Type Description
List<object>

The ROIs specified in roiopt