03-18-2008 05:44 AM
03-19-2008 10:33 AM
Hi BillyP,
A couple of questions, what values do you have for the Line Coordinates input to IMAQ Get Pixel Line? Also how do you know how long the line is -- I'm assuming your are getting this from your Line Coordinates? It sounds like you are not reading all the pixels but, of the pixels you do read are the intensity values correct?
03-20-2008 02:02 AM
Dear Michelle,
thank you for your answer.
Currently i am using the IMAQ Light meter(line). I am trasnlating the (r,θ) values to (x,y) and i am using this as an input. try to test the subrutine with values (0,340, 300, 335) and see what happens. the line should be about 300pixels but it turns to be only 241! This problem starts from IMAQ GetPixelLine. I checked it and this is causing the problem.
I have found a way to solve my problem by using the IMAQ GetPointsOnLine, that with the same input it returns correct results. I mean the correct pixel count (300). I havent tested the intensity profiles yet and see if they are in correct line but i will do that now.
Let me know what you have found!
Thank you again 🙂
Vassilis
03-20-2008 02:25 AM
Dear Michelle,
I have found the error! The image that i was working on was a 413,340 pixel image. The IMAQ GetPointsOnLine returned an error with the (0,340,300,335) line cause of the (0,339) vertical resolution of the image! So i checked on the IMAQ Light Meter (Line) and it works just fine now. The problem is that the pixels that were not in an image (the ones at (x,340) were substracted from the final result, without an error from the subrutine!
Maybe there should be an error indicator for these pixels.
Thank you again 🙂
Vassilis
03-21-2008 10:19 AM