08-29-2012 02:40 AM
Hello
I use cvi 2010 and ni vision with a GigE camera to test a screen OLED(small screen):
1-Test pixel (cmptage number of pioxel)
2-Alignment test
I wants to know what is the function imaq to test the proper positioning of my screen: angle of rotation relative to the Horizental.
I use the fonction:
imaqMeasureParticle (src1, FALSE, TRUE, IMAQ_MT_ORIENTATION, &anglee);
bat the resultas is always 90.
Help please.
08-30-2012 10:37 AM
Hi Hamden,
There are many different ways of finding the angle of rotation of an object. The easiest way could be to do a pattern match which returns the angle of rotation or you could use straight edge detection to determine the angle. To find the list of all functions go to Start>>Programs>>National Instruments>>Vision>>Documentation. The function for pattern match is CWIMAQPatternMatchReportItem and the straight edge detection is CWIMAQStraightEdge.
LabVIEW Reference:
IMAQ Find Straight Edges 3 VI
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_find_straight_edges_3/
IMAQ Match Pattern 3 VI
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_match_pattern_3/
Tim O
03-09-2015 05:42 AM
Hello,
i'm working on he same subject and i'm finding difficulties on using Labwindows CVI because it's my first time,
In fact i used the function IMAQ Match Pattern and it works but the problem is when the image is rotated the function doesn't fount the pattern i think that the problem is how to define the RotationAngleRange and to initialize angleRanges(upper and lower) I tried this code
RotationAngleRange* angleRanges ;
angleRanges->lower= 0;
angleRanges->upper= 30;
but it doesn't work
FATAL RUN-TIME ERROR: "uptest.c", line 41, col 10, thread id 0x00001BD8: Dereference of uninitialized pointer.
please help me