Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

DispayMapping16 bit in LabVIEW NXG

Solved!
Go to solution

Dear colleagues,

 

not sure if this question shall be placed in LabVIEW NXG thread or in Vision, let start here.

 

Using DisplayMapping16Bit property I've got pretty strange result. For example, for  the gradient 0...65535 I mapping the image to 10000...20000 range:

 

LabVIEW NXG 3.0 codeLabVIEW NXG 3.0 code

and here is the result from LabVIEW NXG:

 

nxg result - Screenshot 2019-01-17 18.32.11.png

But expected result is the following:

expected Screenshot 2019-01-17 18.32.56.png

checked with LabVIEW 2018 / VDM 2018

code lv2018 - Screenshot 2019-01-17 18.33.42.png

 

Could be a bug in assumption that the conversion method should work in the same way in both Development Environments. Anyway I was unable to get the same result with different conversion methods.LabVIEW NXG Project in attachment.

 

Any idea?

0 Kudos
Message 1 of 2
(2,498 Views)
Solution
Accepted by topic author Andrey_Dmitriev

Dear Andrey_Dmitriev,

 

I did some research on the issue you described and here are my observations/solution. There is missing documentation of Conversion Method parameter when using Vision Image Display Property Node in LabVIEW NXG. Documentation in LabVIEW 2018 seems to be slightly better - you can create Enum Constant from 16-bit Display Mapping:Conversion Method input, which will give you known and expected values. As you can see on the image below, value 2 provided by you to this input is not defined. I believe this is the main reason for seeing different results - both LabVIEW 2018 and LabVIEW NXG has a different Default value defined internally (I guess). 

 

2019-02-05 13_08_59.png

 

As you specified Minimum Value and Maximum Value for DisplayMapping I thing you want to map values to those boundary value. It means that the Conversion Method parameter will have a value 14 (Given Range). The final result will be the same in both - LabVIEW 2018 and also LabVIEW NXG as you see on the picture below.

 

LabVIEW 2018

2019-02-05 13_13_12.png2019-02-05 13_13_36.png

 

LabVIEW NXG

2019-02-05 13_12_59.png2019-02-05 13_13_28.png

 

 

I hope this explanation will help you. 

 

Kind Regards,

Michal

 

Message 2 of 2
(2,403 Views)