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 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.

Reply via email to