| synopsis || return value || arguments || prev || next |

jpx_metanode::add_regions

Java: Jpx_metanode::Add_regions

jpx_metanode add_regions( int num_regions, const jpx_roi * regions)

Java: Jpx_metanode Add_regions( int num_regions, Jpx_roi regions)

[Declared in "../apps/compressed_io/jpx.h"]

Go to class description.


Synopsis

Use this function to add a descendant to the present node, assigning this descendant to represent an ROI description box. If this node is assigned its own descendants, it will be represented by an association box, whose first sub-box is the ROI description box; in this, the most useful case, the node's descendants will all be associated with the image regions supplied via the regions array. If no descendants are added to the new node, it will be represented as an isolated ROI description box all by itself.


Return Value

Reference to the newly created node.

Arguments

num_regions [int]

Number of entries in the regions array.

regions [const jpx_roi *]


| top || synopsis || return value || arguments || prev || next |