Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Split Image & Summation Problem

Solved!
Go to solution

Hello,

 

I've a set of images where two drops are captured in a shadowgram. Then the image is inverted and split in half. Splitting is required since the algorithm I use integrates across x and y directions, and it won't work for multiple images. That being said, the algorithm works fine when an image of one drop is loaded, but when I start splitting an image with two droplets the image to array vi doesnt pass the correct values. The splitting itself is fine (I believe) because I can see the two new images. I've tried changing image format and wires.... but non of it worked.

 

0 Kudos
Message 1 of 5
(3,657 Views)

Each part of the software works fine on it's own but not when it's combined with other components. What should I change?

Two more attachments.

Download All
0 Kudos
Message 2 of 5
(3,654 Views)

Hello,

 

I found it easier to do this by simply converting the image to array and using the array manipulation VI's to split the data in 2.  You can then rebuild it to an array. 

 

23132i78C0630514224391

 

23134i4D778E566F6D6772

 

Hope this helps!

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
Message 3 of 5
(3,602 Views)
Solution
Accepted by topic author simply_me

Hi Tejinder,

 

Thanks for your modification it is easier and more efficient, I'll implement it.

Also, I've found out that I had a problem with the images due to a built in noise in the camera, and once I eliminated it the vi works.

 

 

 

0 Kudos
Message 4 of 5
(3,598 Views)

Need to edit my last post.  "You can then rebuild it to an array" should be "You can rebuild the 2 arrays to images"

 

Glad I could help!

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 5 of 5
(3,592 Views)