I use C# and NI Vision development 2010 sp1,
I want to set ROI Region to Image Threshold
ex:
But,Thresold function must use VisionImag to Computing, as below parameter1 & parameter2...
public static void Threshold(
VisionImage source,
VisionImage destination,
Range range,
bool replaceValue,
double newValue
);
Now I just can Extract a new VisionImage to Threshold, and ImageToImage the new VisionImage to Origin VisionImage,
but it just can use a retangle to Extract Image,
How can I to use RotatedRectangle, Oval or Polygon ROI to achieve my function??
已解決! 轉到解決方案。
Excuse me, I already have to try Vision Assistant,
but the threshold function of Vision Assistant only set gray level or autothreshold choice,
I can't set roi region to threshold.
I look for the help document, as below...
public static void Threshold(
VisionImage source,
VisionImage destination,
Range range,
bool replaceValue,
double newValue
);
public static Collection<ThresholdData> AutoThreshold(
VisionImage source,
VisionImage destination,
int numberOfClasses,
ThresholdMethod method,
VisionImage mask
);
AutoThreshold function seem to use mask to achieve ROI region to threshold,
but I want to use manual threshold function that must use threshold function,
why threshold function have not mask parameter???
That's right.
It is my demand.
Thanks for your repply.