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.


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir