Thanks Gillaume,
The input image contains a normalized difference vegetation index with
values in the range -1 to +1
Just realized, by reading the terminal output, that Convert is not able to
properly compute the min and max (I get NaNs). that would explain getting a
blank image.... Rescale is able to find the right min and max values but it
still outputs a blank image.
Please see attached the log files.
On Wed, Dec 16, 2015 at 2:22 PM, Guillaume Pasero <[email protected]>
wrote:
> Hi,
>
> What does your input image contain ? Decimal values between 0 and 255 ?
> For the Convert application, "-type none" means no rescaling, pixel
> values are just cast to the output type.
> Could you send the terminal output (for both Convert and Rescale)?
>
> Regards,
> Guillaume
>
> On 12/16/2015 02:05 PM, Raul ZM wrote:
> >
> > Hi there,
> >
> > we are trying to transform a float32 tiff image into a uint8 (so from
> > decimals to the interval 0 to 255).
> > For this we have tested Convert:
> > olbcli_Convert -in file1.tiff -out file2.tif uint8 -type linear (btw,
> > what would be type "none"?)
> >
> > and Rescale:
> > otbcli_Rescale -in file1.tiff -out file2.tif uint8 -outmin 0 -outmax 255
> > (also tried without the last three parameters as these are the default
> > values)
> >
> > in both cases we get blank images or an stripped image that has nothing
> > to do with the original file.
> > Any idea/suggestion of what might be going on?
> >
> > Thanks
> > Raul
> > PS: we are calling the .bat files from DOS
> >
> > --
> > --
> > Check the OTB FAQ at
> > http://www.orfeo-toolbox.org/FAQ.html
> >
> > You received this message because you are subscribed to the Google
> > Groups "otb-users" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/otb-users?hl=en
> > ---
> > You received this message because you are subscribed to the Google
> > Groups "otb-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to [email protected]
> > <mailto:[email protected]>.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> <www.c-s.fr> *Guillaume PASERO*
> Ingénieur d'études et développement
> *Business Unit E-SPACE & Geo Information*
> <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département
> APPLICATIONS*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected]
>
> --
> --
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ.html
>
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "otb-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/otb-users/E5e_QW1Oy4Y/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
otbcli_Rescale -in "D:\NDI1_2.tif" -out "D:\1_2_rescale.tif" -ram 2048 -outmin
0 -outmax 255
2015 Dec 16 16:10:24 : Application.logger (DEBUG) Starting Min/Max
computation
Min/Max computing: 0% [ ]
Min/Max computing: 2% [* ]
Min/Max computing: 4% [** ]
Min/Max computing: 6% [*** ]
Min/Max computing: 8% [**** ]
Min/Max computing: 10% [***** ]
Min/Max computing: 12% [****** ]
Min/Max computing: 14% [******* ]
Min/Max computing: 16% [******** ]
Min/Max computing: 18% [********* ]
Min/Max computing: 20% [********** ]
Min/Max computing: 22% [*********** ]
Min/Max computing: 24% [************ ]
Min/Max computing: 26% [************* ]
Min/Max computing: 28% [************** ]
Min/Max computing: 30% [*************** ]
Min/Max computing: 32% [**************** ]
Min/Max computing: 34% [***************** ]
Min/Max computing: 36% [****************** ]
Min/Max computing: 38% [******************* ]
Min/Max computing: 40% [******************** ]
Min/Max computing: 42% [********************* ]
Min/Max computing: 44% [********************** ]
Min/Max computing: 46% [*********************** ]
Min/Max computing: 48% [************************ ]
Min/Max computing: 50% [************************* ]
Min/Max computing: 52% [************************** ]
Min/Max computing: 54% [*************************** ]
Min/Max computing: 56% [**************************** ]
Min/Max computing: 58% [***************************** ]
Min/Max computing: 60% [****************************** ]
Min/Max computing: 62% [******************************* ]
Min/Max computing: 64% [******************************** ]
Min/Max computing: 66% [********************************* ]
Min/Max computing: 68% [********************************** ]
Min/Max computing: 70% [*********************************** ]
Min/Max computing: 72% [************************************ ]
Min/Max computing: 74% [************************************* ]
Min/Max computing: 76% [************************************** ]
Min/Max computing: 78% [*************************************** ]
Min/Max computing: 80% [**************************************** ]
Min/Max computing: 82% [***************************************** ]
Min/Max computing: 84% [****************************************** ]
Min/Max computing: 86% [******************************************* ]
Min/Max computing: 88% [******************************************** ]
Min/Max computing: 90% [********************************************* ]
Min/Max computing: 92% [********************************************** ]
Min/Max computing: 94% [*********************************************** ]
Min/Max computing: 96% [************************************************ ]
Min/Max computing: 98% [************************************************* ]
Min/Max computing: 100% [**************************************************]
(0.5 seconds)
2015 Dec 16 16:10:25 : Application.logger (DEBUG) Min/Max computation done :
min=[-0.988506] max=[0.990909]
Writing D:\1_2_rescale.tif...: 0% [
]
Writing D:\1_2_rescale.tif...: 2% [*
]
Writing D:\1_2_rescale.tif...: 4% [**
]
Writing D:\1_2_rescale.tif...: 6% [***
]
Writing D:\1_2_rescale.tif...: 8% [****
]
Writing D:\1_2_rescale.tif...: 10% [*****
]
Writing D:\1_2_rescale.tif...: 12% [******
]
Writing D:\1_2_rescale.tif...: 14% [*******
]
Writing D:\1_2_rescale.tif...: 16% [********
]
Writing D:\1_2_rescale.tif...: 18% [*********
]
Writing D:\1_2_rescale.tif...: 20% [**********
]
Writing D:\1_2_rescale.tif...: 22% [***********
]
Writing D:\1_2_rescale.tif...: 24% [************
]
Writing D:\1_2_rescale.tif...: 26% [*************
]
Writing D:\1_2_rescale.tif...: 28% [**************
]
Writing D:\1_2_rescale.tif...: 30% [***************
]
Writing D:\1_2_rescale.tif...: 32% [****************
]
Writing D:\1_2_rescale.tif...: 34% [*****************
]
Writing D:\1_2_rescale.tif...: 36% [******************
]
Writing D:\1_2_rescale.tif...: 38% [*******************
]
Writing D:\1_2_rescale.tif...: 40% [********************
]
Writing D:\1_2_rescale.tif...: 42% [*********************
]
Writing D:\1_2_rescale.tif...: 44% [**********************
]
Writing D:\1_2_rescale.tif...: 46% [***********************
]
Writing D:\1_2_rescale.tif...: 48% [************************
]
Writing D:\1_2_rescale.tif...: 50% [*************************
]
Writing D:\1_2_rescale.tif...: 52% [**************************
]
Writing D:\1_2_rescale.tif...: 54% [***************************
]
Writing D:\1_2_rescale.tif...: 56% [****************************
]
Writing D:\1_2_rescale.tif...: 58% [*****************************
]
Writing D:\1_2_rescale.tif...: 60% [******************************
]
Writing D:\1_2_rescale.tif...: 62% [*******************************
]
Writing D:\1_2_rescale.tif...: 64% [********************************
]
Writing D:\1_2_rescale.tif...: 66% [*********************************
]
Writing D:\1_2_rescale.tif...: 68% [**********************************
]
Writing D:\1_2_rescale.tif...: 70% [***********************************
]
Writing D:\1_2_rescale.tif...: 72% [************************************
]
Writing D:\1_2_rescale.tif...: 74% [*************************************
]
Writing D:\1_2_rescale.tif...: 76% [**************************************
]
Writing D:\1_2_rescale.tif...: 78% [***************************************
]
Writing D:\1_2_rescale.tif...: 80% [****************************************
]
Writing D:\1_2_rescale.tif...: 82% [*****************************************
]
Writing D:\1_2_rescale.tif...: 84% [******************************************
]
Writing D:\1_2_rescale.tif...: 86% [*******************************************
]
Writing D:\1_2_rescale.tif...: 88%
[******************************************** ]
Writing D:\1_2_rescale.tif...: 90%
[********************************************* ]
Writing D:\1_2_rescale.tif...: 92%
[********************************************** ]
Writing D:\1_2_rescale.tif...: 94%
[*********************************************** ]
Writing D:\1_2_rescale.tif...: 96%
[************************************************ ]
Writing D:\1_2_rescale.tif...: 98%
[************************************************* ]
Writing D:\1_2_rescale.tif...: 100%
[**************************************************] (6 seconds)
otbcli_Convert -in "D:\NDI1_2.tif" -out "D:\1_2.tif" uint8 -type linear
2015 Dec 16 16:06:58 : Application.logger (DEBUG) Shrink factor used to
compute Min/Max: 8
2015 Dec 16 16:06:58 : Application.logger (DEBUG) Shrink starts...
Computing shrink Image for min/max estimation...: 0% [
]
Computing shrink Image for min/max estimation...: 2% [*
]
Computing shrink Image for min/max estimation...: 4% [**
]
Computing shrink Image for min/max estimation...: 6% [***
]
Computing shrink Image for min/max estimation...: 8% [****
]
Computing shrink Image for min/max estimation...: 10% [*****
]
Computing shrink Image for min/max estimation...: 12% [******
]
Computing shrink Image for min/max estimation...: 14% [*******
]
Computing shrink Image for min/max estimation...: 16% [********
]
Computing shrink Image for min/max estimation...: 18% [*********
]
Computing shrink Image for min/max estimation...: 20% [**********
]
Computing shrink Image for min/max estimation...: 22% [***********
]
Computing shrink Image for min/max estimation...: 24% [************
]
Computing shrink Image for min/max estimation...: 26% [*************
]
Computing shrink Image for min/max estimation...: 28% [**************
]
Computing shrink Image for min/max estimation...: 30% [***************
]
Computing shrink Image for min/max estimation...: 32% [****************
]
Computing shrink Image for min/max estimation...: 34% [*****************
]
Computing shrink Image for min/max estimation...: 36% [******************
]
Computing shrink Image for min/max estimation...: 38% [*******************
]
Computing shrink Image for min/max estimation...: 40% [********************
]
Computing shrink Image for min/max estimation...: 42% [*********************
]
Computing shrink Image for min/max estimation...: 44% [**********************
]
Computing shrink Image for min/max estimation...: 46% [***********************
]
Computing shrink Image for min/max estimation...: 48% [************************
]
Computing shrink Image for min/max estimation...: 50%
[************************* ]
Computing shrink Image for min/max estimation...: 52%
[************************** ]
Computing shrink Image for min/max estimation...: 54%
[*************************** ]
Computing shrink Image for min/max estimation...: 56%
[**************************** ]
Computing shrink Image for min/max estimation...: 58%
[***************************** ]
Computing shrink Image for min/max estimation...: 60%
[****************************** ]
Computing shrink Image for min/max estimation...: 62%
[******************************* ]
Computing shrink Image for min/max estimation...: 64%
[******************************** ]
Computing shrink Image for min/max estimation...: 66%
[********************************* ]
Computing shrink Image for min/max estimation...: 68%
[********************************** ]
Computing shrink Image for min/max estimation...: 70%
[*********************************** ]
Computing shrink Image for min/max estimation...: 72%
[************************************ ]
Computing shrink Image for min/max estimation...: 74%
[************************************* ]
Computing shrink Image for min/max estimation...: 76%
[************************************** ]
Computing shrink Image for min/max estimation...: 78%
[*************************************** ]
Computing shrink Image for min/max estimation...: 80%
[**************************************** ]
Computing shrink Image for min/max estimation...: 82%
[***************************************** ]
Computing shrink Image for min/max estimation...: 84%
[****************************************** ]
Computing shrink Image for min/max estimation...: 86%
[******************************************* ]
Computing shrink Image for min/max estimation...: 88%
[******************************************** ]
Computing shrink Image for min/max estimation...: 90%
[********************************************* ]
Computing shrink Image for min/max estimation...: 92%
[********************************************** ]
Computing shrink Image for min/max estimation...: 94%
[*********************************************** ]
Computing shrink Image for min/max estimation...: 96%
[************************************************ ]
Computing shrink Image for min/max estimation...: 98%
[************************************************* ]
Computing shrink Image for min/max estimation...: 100%
[**************************************************] (0.5 seconds)
2015 Dec 16 16:06:59 : Application.logger (DEBUG) Shrink done
2015 Dec 16 16:06:59 : Application.logger (DEBUG) Evaluating input Min/Max...
2015 Dec 16 16:06:59 : Application.logger (DEBUG) Min/Max computation done :
min=[nan] max=[nan]
Writing D:\1_2.tif...: 0% [ ]
Writing D:\1_2.tif...: 2% [* ]
Writing D:\1_2.tif...: 4% [** ]
Writing D:\1_2.tif...: 6% [*** ]
Writing D:\1_2.tif...: 8% [**** ]
Writing D:\1_2.tif...: 10% [***** ]
Writing D:\1_2.tif...: 12% [****** ]
Writing D:\1_2.tif...: 14% [******* ]
Writing D:\1_2.tif...: 16% [******** ]
Writing D:\1_2.tif...: 18% [********* ]
Writing D:\1_2.tif...: 20% [********** ]
Writing D:\1_2.tif...: 22% [*********** ]
Writing D:\1_2.tif...: 24% [************ ]
Writing D:\1_2.tif...: 26% [************* ]
Writing D:\1_2.tif...: 28% [************** ]
Writing D:\1_2.tif...: 30% [*************** ]
Writing D:\1_2.tif...: 32% [**************** ]
Writing D:\1_2.tif...: 34% [***************** ]
Writing D:\1_2.tif...: 36% [****************** ]
Writing D:\1_2.tif...: 38% [******************* ]
Writing D:\1_2.tif...: 40% [******************** ]
Writing D:\1_2.tif...: 42% [********************* ]
Writing D:\1_2.tif...: 44% [********************** ]
Writing D:\1_2.tif...: 46% [*********************** ]
Writing D:\1_2.tif...: 48% [************************ ]
Writing D:\1_2.tif...: 50% [************************* ]
Writing D:\1_2.tif...: 52% [************************** ]
Writing D:\1_2.tif...: 54% [*************************** ]
Writing D:\1_2.tif...: 56% [**************************** ]
Writing D:\1_2.tif...: 58% [***************************** ]
Writing D:\1_2.tif...: 60% [****************************** ]
Writing D:\1_2.tif...: 62% [******************************* ]
Writing D:\1_2.tif...: 64% [******************************** ]
Writing D:\1_2.tif...: 66% [********************************* ]
Writing D:\1_2.tif...: 68% [********************************** ]
Writing D:\1_2.tif...: 70% [*********************************** ]
Writing D:\1_2.tif...: 72% [************************************ ]
Writing D:\1_2.tif...: 74% [************************************* ]
Writing D:\1_2.tif...: 76% [************************************** ]
Writing D:\1_2.tif...: 78% [*************************************** ]
Writing D:\1_2.tif...: 80% [**************************************** ]
Writing D:\1_2.tif...: 82% [***************************************** ]
Writing D:\1_2.tif...: 84% [****************************************** ]
Writing D:\1_2.tif...: 86% [******************************************* ]
Writing D:\1_2.tif...: 88% [******************************************** ]
Writing D:\1_2.tif...: 90% [********************************************* ]
Writing D:\1_2.tif...: 92% [********************************************** ]
Writing D:\1_2.tif...: 94% [*********************************************** ]
Writing D:\1_2.tif...: 96% [************************************************ ]
Writing D:\1_2.tif...: 98% [************************************************* ]
Writing D:\1_2.tif...: 100%
[**************************************************] (3 seconds)