LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity graph without zero-index column or row array

Hi,

 

Sorry if subject of my post message is incorrect.

I have CCD camera (1340*400 pixels) and program take image 20*30 pixels image beginning 40*50 pixel.

When 20*30 pixels array is connected to intensity graph and Xscale.Min (or offset) and YScale.Max (or offset) are changed to 40 and 50 then I don't see anything because intensity graph plots 20*30 pixels array into first 20*30 rows*columns.

 

I can reshape array and make it 60*80 and them show 20*30 area beginning 40*50 pixel.

But is it possible to use 20*30 areas and show in real coordinate?

 

Thanks, Andrey

 

0 Kudos
Message 1 of 7
(2,941 Views)

Is the array that you are using as the input of the intensity graph 20x30 in size?  If so how are you letting the graph know that it should start putting the points at the 40,50 pixel?

 

One thing that you could do is to initialize a 40x50 array and add your 20x30 to it so that you have an empty array from 0,0 to 40,50 and then have your 20x30 array start from there.

Scott A
SSP Product Manager
National Instruments
0 Kudos
Message 2 of 7
(2,928 Views)

I want that the arrays will be 20x30 in size instead of 60x80 (40x50 + 20x30) where only 30% is useful..

My hope was that few intensity graph properties support that. But I couldn't find myself.

0 Kudos
Message 3 of 7
(2,926 Views)

The array indices will always be the x,y coordinates for the z-value contained within the array.  What you could do is combine the 20x30 array with the 40x50 array (filled with zeros) for the graph but use the original array for any other operations you are performing.  This way the graph will display what you want but you will retain the original array for any operations you want to perform on it.

Scott A
SSP Product Manager
National Instruments
0 Kudos
Message 4 of 7
(2,918 Views)

It means - answer is impossible.

Actually, if someone will need to show negative x or y coordinate then intensity graph would not work also.

0 Kudos
Message 5 of 7
(2,913 Views)

You can make your own labels.

 

First make the X scale invisible.  Take a slider and change it to an indicator.  Make its length the same as the width of the plot area of the graph.  Move the slider into position to represent the scale.  Set upper and lower limits as you wish. Repeat for Y scale if needed.  You can color the background transparent so you do not see the slider.

 

The image below shows what it might look like (without changing the color to invisible, which would make it hard to see).

 

Lynn

 

 

Intensity Graph labels.png

0 Kudos
Message 6 of 7
(2,910 Views)

Good idea!

 

In ant case I suppose NI needs to fix this issue. 

0 Kudos
Message 7 of 7
(2,907 Views)