LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set white Frame to a Picture

Solved!
Go to solution

Hey

 

I want to add a white frame with one Pixel thickness to a picture in order to separate particles from the image border. I need a gradient completely surrounding each particle, which isn't the case if they touch the image border.

 

I made a VI which reads an Image, and then makes an array filled with zeros in the dimensions of the picture plus two in each dimension. Then I convert that array into a picture which is two pixels bigger in x and y each than the input picture, and completely white.

Then I copy the first picture in the white one, with an offset of 1;1. This VI should put a white Frame onto my picture which it doesnt. Can somebody tell me what I did wrong?

 

Thanks for any help.

Download All
0 Kudos
Message 1 of 5
(2,802 Views)
White(255) and black(0).
- if you are working on binary image you can use IMAQ Reject Border to remove particles touching border: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_rejectborder/
Thanks
uday
Message 2 of 5
(2,784 Views)

Thanks for noting the wrong pixel value, but since my VI doesnt add any frame, this wasnt the issue.

 

I dont want to remove any particles.

0 Kudos
Message 3 of 5
(2,780 Views)
Use different IMAQ Create buffers with different names.
Thanks
uday
0 Kudos
Message 4 of 5
(2,773 Views)
Solution
Accepted by topic author nbo2058

Edit Timedout. Use below snippet:

Image_frame.png

Thanks
uday
Message 5 of 5
(2,749 Views)