Author Topic: HDRComposition: Incompatible image geometry  (Read 2688 times)

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
HDRComposition: Incompatible image geometry
« on: 2015 September 27 03:28:59 »
I'm trying to HDR compose 3 images and I'm finding this:

Code: [Select]
HDRComposition: Global context

Opening files:
/home/hue/IMG_003510.CR2

Timestamp: Sun Jun  7 16:26:09 2009
Camera: Canon EOS 40D
ISO speed: 100
Shutter: 1/1024.0 sec
Aperture: f/19.9
Focal length: 18.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size:  1936 x 1288
Full size:   3944 x 2622
Image size:  3908 x 2602
Output size: 2602 x 3908
Raw colors: 3
Filter pattern: RG/GB
Daylight multipliers: 2.444244 0.930336 1.163797
Camera multipliers: 2335.000000 1024.000000 1367.000000 1024.000000

Invoking: dcraw -4 -o 0 -w -q 2
Decoding Canon EOS 40D file (3908x2602 pixels, ISO=100, Exposure=1/1024s): done
Loading raw image: done
/home/hue/IMG_003511_r.fit
*** Error: /home/hue/IMG_003511_r.fit: Incompatible image geometry.
<* failed *>

It's one CR2 and two FIT images, these two being the result of a FFTRegistration made earlier this week.

Then I opened the 3 images to check their geometry:

Code: [Select]
Reading 3 image(s):
/home/hue/IMG_003510.CR2

Timestamp: Sun Jun  7 16:26:09 2009
Camera: Canon EOS 40D
ISO speed: 100
Shutter: 1/1024.0 sec
Aperture: f/19.9
Focal length: 18.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size:  1936 x 1288
Full size:   3944 x 2622
Image size:  3908 x 2602
Output size: 2602 x 3908
Raw colors: 3
Filter pattern: RG/GB
Daylight multipliers: 2.444244 0.930336 1.163797
Camera multipliers: 2335.000000 1024.000000 1367.000000 1024.000000

Invoking: dcraw -4 -o 0 -w -q 2
Decoding Canon EOS 40D file (3908x2602 pixels, ISO=100, Exposure=1/1024s): done
Loading raw image: done
/home/hue/IMG_003511_r.fit
27 FITS keywords extracted
ICC profile extracted: 'sRGB IEC61966-2.1', 3024 bytes
Reading FITS: 16-bit integers, 3 channel(s), 2602x3908 pixels: done
/home/hue/IMG_003512_r.fit
27 FITS keywords extracted
ICC profile extracted: 'sRGB IEC61966-2.1', 3024 bytes
Reading FITS: 16-bit integers, 3 channel(s), 2602x3908 pixels: done

So geometry is 2602x3908 in all cases. It should work, right? But I noticed that when decoding the CR2 it says:

Code: [Select]
Image size:  3908 x 2602
Output size: 2602 x 3908

So it switches from "landscape" to "portrait", so to speak. If I open the JPG that was created by the camera alongside the CR2, it opens in "landscape". This may have something to do…

Is it a bug? ;). If not, what can I do besides the obvious step of rotating the first (CR2) image?
--
 David Serrano

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
Re: HDRComposition: Incompatible image geometry
« Reply #1 on: 2015 September 27 09:34:20 »
In the Format Explorer if you double click on the DSLR_RAW and check the 'No image flip' option it will not rotate the image.

Regards,
David