Agisoft Metashape

Agisoft Metashape => Bug Reports => Topic started by: CheeseAndJamSandwich on April 10, 2022, 12:57:00 PM

Title: Exported/Imported DEM Palette w/absolute values adds 00 to each value.
Post by: CheeseAndJamSandwich on April 10, 2022, 12:57:00 PM
When i've exported a DEM Palette from the Set Palette function, and then re-imported it, It doesn't come in correctly.
* The 'Absolute values' option isn't restored if it was set when exporting the palette.
* Each absolute value has two extra zeros added, so 5 becomes 500... 30 becomes 3000.

Here's the contents of one of my saved DEM Palette .clr files:
Code: [Select]
ColorMap 1 1
-4000 91 0 0
-3100 170 0 0
-3000 0 0 255
-1900 0 85 255
-1800 0 85 0
-1300 0 204 0
-1200 0 85 255
-600 0 170 255
-500 0 216 0
0 0 106 0
In the above file, the orginal values should be absolute and would have been -40, -31, ... -6, -5, 0
Note, my values are negative, as this is an underwater scan.

Thanks
Title: Re: Exported/Imported DEM Palette w/absolute values adds 00 to each value.
Post by: Alexey Pasumansky on April 11, 2022, 01:16:40 PM
Hello CheeseAndJamSandwich,

If you import back .clr file, do you get proper values in the DEM Palette dialog (except for Absolute Values checkbox)?
Title: Re: Exported/Imported DEM Palette w/absolute values adds 00 to each value.
Post by: CheeseAndJamSandwich on April 18, 2022, 09:28:06 AM
No, it comes in as 4000, 3100, etc...  So i have to delete two zeros from each.
And the Absolute values checkbox isn't set, so needs resetting...

So importing is fine.
It's the exporting that adds the two zeros...
And i guess the exported file doesn't include the state of the absolute values checkbox... And the importing doesn't set it.

Thanks