LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add and subtract two images?

Solved!
Go to solution

Hello,

 

I am working on phase contrast unit in order to get the phase contrast details of cells from the sample.

 

So for the same,I capture two images with from different illumination pattern.

first I light up the upper half circle in to the LED matrix and take one image then I light up the down half circle and takes second image.

and to get the phase contrast details from that two images by using this equation.

 

e.JPG

Illumination pattern upper half circleIllumination pattern upper half circle

 

 

Illumination pattern Down half circleIllumination pattern Down half circle

 

 

 

 

 

 

 

I(DPC) is differnetial phase contrast image

I1 is image when I light up the upper half circle LED matrix

I2 is image taken when I light up the down half circle in LED matrix

 

So in order to get the phase contrast image, first, I have to subtract the second image from the first image store the result then I have to add the I1 and I2 store the result and in last I have to devide the both the result to get the phase contrast image.

 

so if any one know how to add, subtract and divide the images to get the above described result then please let me know.

 

0 Kudos
Message 1 of 5
(2,979 Views)
Solution
Accepted by topic author @mi
If you have vision toolkit you can find the operators vis : http://zone.ni.com/reference/en-XX/help/370281AE-01/imaqvision/operators_pal/
Thanks
uday
0 Kudos
Message 2 of 5
(2,972 Views)
Solution
Accepted by topic author @mi

@udka wrote:
If you have vision toolkit you can find the operators vis : http://zone.ni.com/reference/en-XX/help/370281AE-01/imaqvision/operators_pal/

If not, what do you have? 2D arrays? You can use the normal LabVIEW functions you'd use on scalars.

0 Kudos
Message 3 of 5
(2,943 Views)

I have Ni Vision Development kit and I have tried to do the same what I need.

it is working good.

 

Thank you for the help and support.

Message 4 of 5
(2,929 Views)

+1 (your first kudo) for marking the solutions.

0 Kudos
Message 5 of 5
(2,920 Views)