LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

image with negative intensity value

Hello, I am trying to create a VI that takes the difference between 2 different images.  I am using IMAQ subtract to do this.  The positive values in the resulting image I want to be colored blue, and the negative values I want to be colored red. 

 

I have 2 problems.  First of all, it seems that IMAQ subtract does not allow negative values, and truncates all differences at zero.  This is a big problem.

 

Second, I can not figure out how to change the color scale.  If i right click on the IMAQ display on the front panel I have a few preset options, but I want to be able to save a JPG or something with the color scale I want.

 

Any help here is appreciated, thanks.

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

Colors are handled by UNSIGNED values, because there is NO SUCH THING as a negative intensity.

A negative intensity would be sucking light OUT of your eyeballs.

 

In your case, you might be able to assume that any ZERO values represent pixels where the image is less intense than the reference image.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 3
(5,148 Views)

CoastalMaineBird wrote:

Colors are handled by UNSIGNED values, because there is NO SUCH THING as a negative intensity.

A negative intensity would be sucking light OUT of your eyeballs.

 

In your case, you might be able to assume that any ZERO values represent pixels where the image is less intense than the reference image.


Awesome.  Nice post.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 3
(5,128 Views)