Take a look at the online example program:
Multiple ROI Analysis in CVI:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EDFF56A4E034080020E74861&p_node=DZ52500&p_source=External
It is in CVI, but since I believe you are using C, this is more helpful to you than the LabVIEW version of the code. The function calls are very similar.
This code will show you how to label each ROI and call them. Below is a snippet of the labeling.
Hope this helps -
Julie S
Applications Engineer
National Instruments
MultipleROI = imaqCreateROI (); // Creates the ROI
MakeBoxes(MultipleROI); // Adds predefined boxes to image
imaqROIToMask (Mask, MultipleROI, 1, NULL, NULL); // Converts ROI to Mask image
// Labels the various Regions in the
Mask. Labelling these areas is required for
// imaqQuantify to report data for the various regions.
imaqLabel (Mask, Mask, FALSE, &NumOfRegions);