Hello guys,
I've searched all NI Forum looking for an answer for my problem but as I couldn't find any I decided to create a new topic as it might also be of your interest.
First, my target is to allow the user to import an AIPD (*.apd) image or use a float array (with a 32bits float value per pixel/position) and graphically edit this image (at the moment I'm using a picture frame to get the mouse click position to alter my float array) using a airbrush tool (similar to what you have on Photoshop or GIMP, as it is shown in the attached images). The idea is to have the possibility to increase or decrease the values of my array image using 'white' or 'black' gradients (that's why I want airbrush and also because it should look like a "smooth" change).
A very important reason why I'm using AIPD is that I must work with float values ranging, in general, from 0 to 60000 (which are resulted from a pratical lab experiment so that I can't truncate or lose resolution casting to other IMG type).
Looking for similar topics and stories, I found two libraries that gave me an idea of how I should start (
Paint Xcontrol, which unfortunately doesn't have a airbrush tool, and a very close solution for my problem which is Draw_Picture.llb from Finite Infinity website). This last llb can probably be very useful to other users so I'm also posting the original .llb (credits to the developer from the referred website).
The problem is that this .llb was developed to work with RGB images and not float image values and altought I have tried to find a work around to use it with float values (like having a multiplier factor), sometimes I have problems like in
here (a 'black hole' in my image due to a wrong color conversion, instead of what I
would like). I know it has to do with this problem of "adapting" it to float values, but I just can't figure out a way to solve it.
So I would like to ask if you guys have any idea on how should I proceed to solve my problem and also if there is any way I could maybe embed a image editing software such as Corel, Photoshop, GIMP, Paint.NET, etc to let the user interact and I use the resulted image in LabVIEW (I tried to find an ActiveX tool without success).
What I'm trying to do (Draw_Picture_float.llb), the original Draw_Picture.llb, and an example of float image im using ('img test.apd') are attached.
Thank you in advance for any help.
---
Diego Correia
Electrical Engineer
email: diego.correia-e-silva@bmw.de