|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Image Cropping/Mask?
Hi-
I am trying to crop out a certain part of an image to process. I am able to create a region of interest, but when i try to crop out the rest of the picture, I can't seem to do it. This is the relevant part of my code: Code:
ROI* roi; roi = imaqCreateROI(); imaqAddRectContour(roi,imaqMakeRect(0,0,220,640)); This is what I am doing- Code:
ROI* roi; roi = imaqCreateROI(); imaqAddRectContour(roi,imaqMakeRect(0,0,220,640)); //top of image ColorImage* origImage = camera.GetImage(); ColorImage* croppedImage; imaqROIToMask(????????); Basically I just want the camera tracking/processing code to only look in a certain portion of the image. Sadly I couldn't find a "crop" function in the nivision.h library. Thanks! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|