Recent comments

Reply to: Canon 5D Mark IV support   8 years 7 months ago

We publish 'public snapshot' twice a year and 'release' once a year or so.

5D4 (and dozens of other cameras) to be supported in next snapshot (in October or so). Current snapshot can read 5D4 files, but you'll need to set black level manually.

Reply to: Sigma X3F CFA images   8 years 7 months ago

Thank you.

Just for knowledge.
How does it work without Bayer filter to get color ?

EDIT: nevermind, I think I found on wikipedia.

Thanks again for your kindness

Reply to: Sigma X3F CFA images   8 years 7 months ago

Yes.

There are 3 pointers in rawdata (raw_data, color3_data, color4_data and only one is not NULL after unpack)

Reply to: Read Fuji RAF in CFA   8 years 7 months ago

Damn, no C API :).

I have to take a look in dcraw.c to see how it is done .... But this code is no easily readable :).

Best regards

Reply to: Read Fuji RAF in CFA   8 years 7 months ago

Thanks !! I will take a look.

Regards

Reply to: Read Fuji RAF in CFA   8 years 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months ago

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

Pages