11-14-2015 02:52 PM
I separated the three color planes and inverted them. For Red, I subtracted 13% Green and added 9% Blue. For Green, I subtracted 17% Red and added 5% Blue. For Blue, I subtracted 11% Green. I ended up with images that had very faint shadows of the other two.
I am still curious where this image came from and what you are using it for.
Bruce
11-14-2015 03:21 PM
11-16-2015 02:29 AM
@Bruce
Color doesd not matter. Only the data i.e. numbers and millimeter markings that I am working with right now.
Sri
11-16-2015 02:38 AM
@Bruce
Can you please share the file you created to subtract and invert colors?
Sri
11-16-2015 11:22 AM - edited 11-16-2015 11:23 AM
This is the program I used. It should work with the saved settings, except you will need to change the file path for the image. You can tweak the settings to see if you get better results.
I did use another program to expand the dynamic range of the image before separating it, but I don't think that would make a difference. I would probably expand the dynamic range of each color plane before inverting it, but that might change the coefficients for each image you try it on. Expanding the range just makes the background blacker after inversion. In case you are wondering, expanding the range is just finding the brightest pixel then using a multiplication factor to make that pixel 255.
This is a LabVIEW program. I wouldn't want to try this in VBAI.
Bruce