LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making 16 bit grayscale - a image in a color scale

Hi,
I want to show a 16bit grayscale image in a scale of a certain color (that means that instead of scale of between black to white i scale of black to a color eg. red)
I have some image in 16 bit grayscale format, i need to add them together each by a diffrent color scale, to make one image.
(I am taking images in a grayscale from camera that is connected to a microsope, and each image is taken with a diffrent color filter and i need to accumulate then to make one image).
thx in advanced!
0 Kudos
Message 1 of 7
(5,329 Views)
So, you have 3 images, one is using RED filter, one is using GREEN filter, and one is using BLUE filter, and you want to put the 3 images together to one color image, right?
 
Create a color image -> replace the RED-array with the red-image, replace the GREEN-array with the green-image-array, etc.
------- LabVIEW 2009, So Easy, Even a Therapist Can Do It -------
Message 2 of 7
(5,325 Views)
thanks for responding!
i tried to do the following:
but that takes about 5 mints or more. do you have any faster way do that?
0 Kudos
Message 3 of 7
(5,304 Views)

At first glance it looks like your code is spinning needlessly. (Maybe I have to let the coffee start working).

If you removed the For loops and wired your resolution controls as the source instead the index terminals.....

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(5,288 Views)

hmmm, no, because you need reform the data from an array of three separate images into one image which each pixel reprsents the three image's pixels in color.

ill try to add the files so you'll see it.

do you have another idea for doing it more easly?

0 Kudos
Message 5 of 7
(5,273 Views)
I still think that it is only your last iteration that does anything!
 
If you right-click remove loop for both For loops,
 
then wire your resolution controls through a decrement before wire were the iteration terminal was you will get the same result.
 
I don't have all of the sub-VI's.
 
Could you try that?
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(5,260 Views)
I just suceeded, i can't believe i spent latst two days trying to solve this.
 
The solution lies under the wonderfall function "Index & Bundle Cluster Array"
and here is a picture:
0 Kudos
Message 7 of 7
(5,253 Views)