04-13-2012 07:42 AM
Hello,
I am making a project and I want to convert an image to its negative. But I don't know how to do that.
Can you help me, please?
04-13-2012 08:03 AM
There are many tools available for this, for instance Photoshop (costs $$) and Gimp (opensource, for free). They should be able to do this.
If i misunderstood the question (e.g. you are using LabVIEW), please let us know what you have already tried, what are possible toolsuites (like IMAQ) are you using.....
thanks,
Norbert
04-13-2012 08:08 AM
Yes, i am working with labview :). But the problem is that i have a student license so we don't have IMAQ and i have to make the program self.
04-13-2012 08:13 AM
So what is the image format?
Do you use the picture functions to load them? Have you already investigated the result from those functions?
Norbert
04-13-2012 08:20 AM
Wait, I will ask my question again. The thing is that we must upload a picture in labview (that's working) but than must we form it in negative. And there is the problem. I don't know how to do that?
Btw thank you for your help 🙂
04-13-2012 08:22 AM
This is definitely a lot easier if using IMAQ. Without IMAQ, I think it is still possible using Picture to Pixmap, looping through the image data to do the inversion and then doing a Draw Flattened Pixmap.
04-13-2012 08:25 AM - edited 04-13-2012 08:28 AM
How do you do the inversion? 🙂
04-13-2012 08:33 AM - edited 04-13-2012 08:35 AM
"Negative" is not possible for unsigned integer (color information). But "inverting" it is very simple 😉
Hint: We are having arrays of BITS here
Norbert
Additional hint: The whole task requires a path input (file), five nodes, some wires and one picture indicator. This is true for JPG files.
04-13-2012 08:35 AM
Note that you must have a binary picture for this to work.
04-13-2012 08:39 AM - edited 04-13-2012 08:45 AM
And now the most stupid question. How do you make a binary picture of 1D array?
Excuse me for this question, and thank you! 🙂 🙂
In the image of you where do you find the rectangle of picture (image) and must we link our picture to do that. If it is that how must we do that? And the little picture image where can you find it?