LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can convert 2D array to color picture

Solved!
Go to solution

its great!

how can i set the range?

0 Kudos
Message 11 of 20
(3,199 Views)

my purpose is that how i can set the max & min of array in the inside rainbow?
for example set 300 to red and set the -300 to blue and between number automaticly set.

thank you for your help.

0 Kudos
Message 12 of 20
(3,191 Views)

You right-click on the scale marker and set to color and desired value. In this case, select the low marker (currently zero) and type -300, the select the high marker and set it to 300.

0 Kudos
Message 13 of 20
(3,187 Views)

For setting the colors in a visual manner, you want to use 'Color Table Generator.vi' (also included with LabVIEW and you can find it at 'Program Files\National Instruments\LabVIEW 20XX\examples\general\graphs\intgraph.llb\Color Table Generator.vi') and 'Color Table' property node (check the attached modified VI).

 

Also this link might be of interest to you.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHxDCAW&l=en-US


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 14 of 20
(3,182 Views)

hi

i try to change the range of color from block diagram but i can't do this.

see this vi i have the max a min of array but can't set them in intensity graph.

in the attach vi, the negative value be black. but i want the range of color between min & max.

 

pleas help me

thank you sooooooo much for your help.

0 Kudos
Message 15 of 20
(3,155 Views)


hi hamedi,

a property node should do the trick:

 

right click (on intensity graph) > create > property node > z-axis > range > maximum or minimum

 

then wire maximum to maximum and minimum to minimum

 

 

2013-07-27_property-node-zaxis-old.png   2013-07-27_property-node-zaxis.png

Message 16 of 20
(3,144 Views)
Solution
Accepted by hamedi

There are many properties for the Z scale. What you are looking for are high color, low color, and marker values. The last one wants an array of clusters, each containing a value and a color. All these can be set programmatically. You can add or remove value color pairs, change their color, change their value, etc. Here's one way to change the range of the axis.

Message 17 of 20
(3,138 Views)

my problem is solve.

 

thank you all friends for your answer.

 

 

 

 

0 Kudos
Message 18 of 20
(3,117 Views)

Hi All,

 

In addition to this problem, I have similar kind of problem. 

 

I would like to convert any picture to 2D arrays. Than I want to write it to a text file.

 

Could you please help me how can I do that?

 

May thanks

Azim

0 Kudos
Message 19 of 20
(3,072 Views)

@Azim wrote:

In addition to this problem, I have similar kind of problem. 



This thread is already marked as solved and your problem seems different. You should start a new thread instead.

 

(In any case, look into unflatten pixmap and write to spreadsheet file. See how far you get.)

0 Kudos
Message 20 of 20
(3,063 Views)