Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

create an image of dimension 3969 X 260

Solved!
Go to solution

Hi all,

I want to create a 8-bit grayscale image of dimension 3969 X 600. Once the image is created i want to threshold the image using this coordinates (0,38) & (3968,38). 

Thanks in advance

Regards,
KM
0 Kudos
Message 1 of 5
(5,180 Views)

Hello,

 

i fail to understand what do you mean by "I want to create a 8-bit grayscale image of dimension 3969 X 600. "? Do you mean you want to read the image into memory from the PC's hard drive?

 

Also, thresholding is not related to pixels location, but to the intensity levels in the image. Do you mean you want to extract the intensity values at the coordinates you've provided? And then threshold the image based on this?

 

Please explain your problem more clearly.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 5
(5,165 Views)

Hi Klemen,

Thanks form your reply,

Sorry if i was not clear about anything,

But i was able to create an image and threshold the image.

I am looking at something more,

I have an image which is obtained after subtracting 2 images.  I have attached the image to the post. I need to calculate the area, No of height pixels, and coordinates for the white objects.

 

Regards,
KM
0 Kudos
Message 3 of 5
(5,147 Views)
Solution
Accepted by KevinKM

Hi,

You need to threshold the image again to get the white particles. Then pass the thresholded image into imaq particle analysis and select area as the parameter. this will calculate the area of each particle. you can also explore other parameters in the imaq particle analysis to get the remaining features. 

I dont understand what is no of height pixelx? 

Can you cexplain that? 

Hope you can create the vi. 

 

Regards

Aveo

Message 4 of 5
(5,104 Views)

Hi Folks,

Thanks for your replies. Its working fine now. I meant Bounding Rect Height for No of Height Pixels. 

Regards,
KM
0 Kudos
Message 5 of 5
(5,091 Views)