Hi,

it looks like your output image is empty (filled with 0). It also looks like your input images already have a projection, when you open them in QGIS do they overlap correctly ?

For clarity, you should also specify the file extension of output image : pansharpened_image.tif

Regards,
Guillaume

On 10/05/2018 11:51 AM, [email protected] wrote:
Hi Julien,
Many thanks for your quick reply. Both Input and Output file formats are GeoTIFF.gdalinfo can read both inputs and output. gdalinfo for the output image is as follows:
Driver: GTiff/GeoTIFF
Files: pansharpened_image
Size is 1129, 1257
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (116.442644579287958,40.183680965026390)
Pixel Size = (0.000003177881044,-0.000003178646589)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( 116.4426446,  40.1836810) (116d26'33.52"E, 40d11' 1.25"N)
Lower Left  ( 116.4426446,  40.1796854) (116d26'33.52"E, 40d10'46.87"N)
Upper Right ( 116.4462324,  40.1836810) (116d26'46.44"E, 40d11' 1.25"N)
Lower Right ( 116.4462324,  40.1796854) (116d26'46.44"E, 40d10'46.87"N)
Center      ( 116.4444385,  40.1816832) (116d26'39.98"E, 40d10'54.06"N)
Band 1 Block=1129x1 Type=UInt16, ColorInterp=Gray
  NoData Value=0
Band 2 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 3 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 4 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 5 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 6 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 7 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 8 Block=1129x1 Type=UInt16, ColorInterp=Undefined
  NoData Value=0

FYI, when I am loading the output on QGIS I am also getting following error messages:
ERROR 1:pansharpened_image, band 1: Failed to compute statistics, no valid pixels found in sampling.
ERROR 1:pansharpened_image, band 1: Failed to compute statistics, no valid pixels found in sampling.
ERROR 1:pansharpened_image, band 2: Failed to compute statistics, no valid pixels found in sampling.
ERROR 1:pansharpened_image, band 2: Failed to compute statistics, no valid pixels found in sampling.
ERROR 1:pansharpened_image, band 3: Failed to compute statistics, no valid pixels found in sampling.
ERROR 1:pansharpened_image, band 3: Failed to compute statistics, no valid pixels found in sampling.

Kind regards,
Pritimoy

On Friday, 5 October 2018 10:18:05 UTC+1, Julien Michel wrote:

Hi,

 

What file format are you using for input and outputs ? Can gdal read the inputs/output with gdalinfo ?

 

Regards,

 

Julien

 

De : [email protected] <[email protected]> De la part de pritimo...@deimos-space.com
Envoyé : vendredi 5 octobre 2018 11:00
À : otb-users <[email protected]>
Objet : [otb-users] otbcli_BundleToPerfectSensor is generating an invalid image

 

Hi,

I am using otbcli_BundleToPerfectSensor to pan-sharpen a worldview3 image. It is generating an image which seems to be invalid, when I try to load the image on QGIS I get std::bad_alloc. I have ubuntu 14.04 server where I installed otb-bin 5.4.0+dfsg-1~trusty2 and used the following command to generate the image:

otbcli_BundleToPerfectSensor -ram 4096  -inp input_pan_image -inxs input_multispectral_image -out pansharpened_image uint16

 

Am I missing something? Any help will be appreciated.

Pritimoy

 

--
--
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
otb-users+...@googlegroups.com
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 otb-users+...@googlegroups.com.
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.

--
Guillaume PASERO
Responsable technique
Business Unit ESPACE & GeoInformation - Département Payload Data & 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