Dear Experts,
- assuming an image displayed in a CANVAS.
- assuming to use NI-Vision imaq-functions to create a ROI of that image
--> Aim: plot ROI contour into the CANVAS.
Simple enough using CanvasDrawPoly().
If I just could get the ROI-point coordinates, which for some reason I do not get:
To retreive the ROI contour Points I tried:
- imaqGetContourInfo
- imaqROIProfile
Though the ContourInfo tells me the correct number of points, I only get back the coordinate from the first point, while expecting all point coordinates.
see attachment...ROI made of 4 points.
What am I missing?
ROI creating:
lamiRoi = imaqCreateROI();
imaqConstructROI2 (ImageIn, lamiRoi, IMAQ_POLYGON_TOOL, Threshtools,... threshROIoptions,&lamiROIdone);
This is how I use ContourInfo.
lamiContourID = imaqGetContour(lamiRoi,lamiRoiIndex);
lamiContourInfo = imaqGetContourInfo(lamiRoi, lamiContourID);
This is how I use RoiProfile.
ROIProfile* lamiRoiProfile;
lamiRoiProfile = imaqROIProfile(ImageIn, lamiRoi);
Best regards,
der_Phil