ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing

Solved!
Go to solution

hi GerdW,

by inverting(reverse) the graph i mean to say that graph sholud look like as image.the graph which is shown in the image is opposite to that of image.

best regards,

MAC

0 Kudos
Message 11 of 13
(550 Views)

@MAC08 wrote:

hi GerdW,

i want to invert the graph. how i can do that? 

i need some suggestion.

best regards,

MAC


Get the maximum and minimum, subtract the minimum from the signal, then subtract the result from the maximum.

 

[inv] = max([org]) - ( [org] - min([org]) )

or of course:

[inv] = max([org]) +min([org]) - [org]

 

sometimes however a simple negate works:

 

[inv] = neg([org])

 

It does depend on how you define "invert". It could even mean "reverse", inverting left and right (use 'reverse 1D array')...

0 Kudos
Message 12 of 13
(550 Views)

Hi MAC,

 

reverse the (Y) axis…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 13
(544 Views)