ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Imaq get pixel line

Hello.I don't good speack english, but I have a problem. The received arrays of lines Line 1 and Line 2 have the different sizes. And, "radius Line 1"="radius Line 2"="size array Line 1",but no= "size array line2"("size array Line 1">"size array line2"). How can I receive identical array sizes of Line 1 and Line 2 using thus functions IMAQ? And how I can good delete a signal noise and receive the histogram with all peaks of ring on the extract line?(histogram on the picture 3).
Download All
0 Kudos
Message 1 of 3
(5,427 Views)

Hi Marsee,

 

I'm not sure how you would force theuser to make the lines both the same length.  However, why do you need this functionality?  Are you trying to do some processing later in your program and running into problems with the array sizes?  

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 3
(5,390 Views)

The Chancenator wrote:

Hi Marsee,

 

I'm not sure how you would force theuser to make the lines both the same length.  However, why do you need this functionality?  


Hi, Marti,
Very very strange question. The user need such functionality, because frustrated with different line length which is depends from the line direction.
So,  it depends from the method for pixel counting. When line strictly horizontal or vertical, then each pixel behind of line inserted into array. But when line is diagonal, then some pixels crossed partially. So, not all pixels added to result and resulting line length is shorter than original (but take a note - if you will measure length of the line with measurement tape, then bots exactly the same):
 DiffrFP1.png 
 
Butr we can calculate triue length and then interpolate, quick and dirty something like that: 
DiffrBD.png 
 Now both profiles are the same:
 DiffrFP.png
Hope it helps,
with best regards,
Andrey.

 

Message 3 of 3
(5,372 Views)