Recent comments

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Sorry for misinformation.

There is LibRaw::copy_fuji_uncropped() that do the trick.

If you do not use image[][4] array, you may copy-paste it and adopt to your needs.

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

There is no separate LibRaw call to rotate fuji data.

Rotation is performed within LibRaw::raw2image_ex call (which copies data from raw_image array to image[][4] array)

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Hello Alex.

I've correctly opened RAF file without frames thanks to you.
Now I have to apply the scale to transform my picture from this http://hpics.li/ffe7b4f to this http://hpics.li/f653896.

You say that 45deg rotation allows to use only integer math for the scale? What is the function in dcraw (or libraw) doing that ?
fuji_rotate() is only use in the case of debayered data to go back to normal picture.

Cheers

Reply to: Java JNI support   8 years 1 month ago

I would like to know that as well, the only java solution so far was found in the jAlbum binaries (they seem to have written their own port).

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

I think I should go ahead because I did understand.

Thanks for your help with Fuji

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

What I mean, is when I run this:
dcraw -v -T -4 -o 0 -D -t 0 -k 0 -H 1 image.CR2

I do not have any black frames, and this is the behavior I'm trying to reproduce. I've had this with the use of width and height (but RAF files was buggy).

By the way, many thanks for helping me!!

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Sorry, cannot understand your question.
Initially your question was about 'dcraw -D' so document mode, so full access to raw with black frame.

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Correct me if I'm not right, but it was not working because in RAF file you have left and right frame. But in others, like CR2 you have left and top (If I well remember).
So how we remove frames if they aren't in the same place ?

Reply to: Read Fuji RAF in CFA   8 years 1 month ago
OK.

OK.
Fuji are kind of tricky. Thank you for all your advices.
But by using raw_width and raw_height I have black frames I do not want. It was the reason I used width and height.
But apparently this is a problem for Fuji !!

EDIT: and I also have
==21644== Invalid read of size 2 in the line
buf[i++] = raw->rawdata.raw_image[offset + col + (raw_width * row)] ;

EDIT2: Sorry, this is only because offset is not necessary anymore with raw_width and raw_height.

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Yes, Fuji S2/S3/S5 (and, may be, other Super-CCD cameras) use different aspect ratio, not 1:1

The rotate trick is to scale 1:1.41 images to square pixels using only integer math.

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Thank you for the tip about only using raw_width and raw_height.
But by doing like this I have:
http://hpics.li/d461ad2
width and height are not good at all ...
All other images seem to work correctly.

Reply to: Read Fuji RAF in CFA   8 years 1 month ago

Fuji is not different, raw access is the same.
The only difference is not 1:1 aspect ratio on some (very) old Fuji cameras.

BTW, please use raw_width/raw_height in your code, not width/heigh (and not iwidth/iheight)

Reply to: Canon 80D scattered image   8 years 1 month ago

imgdata.sizes.flip contains rotation information got from file
imgdata.params.user_flip - rotation, forced by user

Both are in same format: 0=none, 3=180, 5=90CCW, 6=90CW

libraw_processed_image_t (result from ..mem_image() calls) contains height/with of (rotated) image.

Reply to: Canon 80D scattered image   8 years 1 month ago

I wonder is there any way that I can get the rotation information using the API?

Reply to: Canon 80D scattered image   8 years 1 month ago

Thanks for the quick reply. dcraw_emu converts the image properly. Now I can see where the problem is. The image has been rotated by camera but I am processing it as if it's in landscape position.

Reply to: Canon 80D scattered image   8 years 1 month ago

Same result: tested with up-to-date libraw's dcraw_emu without problem.

Do you use your own code with LibRaw or use libraw samples to test?

Reply to: Canon 80D scattered image   8 years 1 month ago

I converted the file with
dcraw_emu -T -6 -w IMG_0007.CR2
and it looks normal.Could you please try the same?

Reply to: Canon 80D scattered image   8 years 1 month ago

Here is the link to the raw file.
https://www.dropbox.com/s/8usgnpkvc39s8qq/IMG_0007.CR2?dl=0

thanks,

Reply to: Canon 80D scattered image   8 years 1 month ago

Use Dropbox, or google drive or any other file sharing service.

Reply to: Sensor temperature?   8 years 2 months ago

Canon Makernotes is, sure, array of binary data pointed by 0x927c EXIF tag.

The problem with Canon is camera specific makernotes, so you'll need to process every variant
(Canon CameraInfo1D Tags, Canon CameraInfo1DmkII Tags, etc, etc,etc)

For different vendors you'll need to add more vendors processing.

Exiftool already do this camera/vendor specific processing.

Reply to: Sensor temperature?   8 years 2 months ago

I got some more information on this through the Exiftool documentation, as Exiv2 does not yet support this parameter (under discussion with the Exiv2's author). ideally I would like to avoid using Perl-based Exiftool.

Going first here: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html (with explanation on how to decypher what follows)
and clicking on Canon, you end up with the tag list, with adresses written in hex.
Then at 0x0004, clicking on “Canon ShotInfo Tags” brings you down to a so called 2-byte-offseted “index2” at number 12 (and I have no idea what that means), where you’ll find the little bugger “CameraTemperature”.

With this information, I have to find out how to read that out either from the raw file, getting my hands dirty, or through the Exiv2 API, if it allows it knowing the exact locations in the makernote...
Feel free to advise, although i understand this not Libraw's concern.

Reply to: Request for software names   8 years 2 months ago

Hello,
we are using libraw in our software: http://free-astro.org/index.php/Siril as RAW images are often used in astrophotography.
logo: https://free-astro.org/svn/siril/trunk/pixmaps/siril_logo.svg
Thanks for this library.

Cheers,

Reply to: MinGW-64 build and UNICODE paths   8 years 2 months ago

You may implement own datastream (e.g. based on LibRaw_bigfile_datastream which uses FILE* I/O) and own open_wfile() method.

Reply to: MinGW-64 build and UNICODE paths   8 years 2 months ago

I found std::filebuf usage later. So, it looks like there is no easy way to handle Unicode paths in mingw64 builds :(.

Pages