Posted by
Jon Harman on
Apr 25, 2006; 6:42am
URL: http://imagej.273.s1.nabble.com/running-dcraw-plugin-tp3703013p3703017.html
Once you use DCRaw to get the linear image you could do most of the
other transformations using ImageJ, but this is a little slow.
Here is a kludge macro I wrote to take the linear raw and apply a gamma
curve to it then store in 8 bit RGB. It would be much faster to use a
LUT for the Gamma curve as DCRaw does.
if (nImages==0) {
open();
}
stack = getImageID;
selectImage(stack);
var x=0.5;
x = getNumber("Gamma", x);
setSlice(1);
run("Duplicate...", "title=R");
run("Gamma...","value="+x);
selectImage(stack);
setSlice(2);
run("Duplicate...", "title=G");
run("Gamma...","value="+x);
selectImage(stack);
setSlice(3);
run("Duplicate...", "title=B");
run("Gamma...","value="+x);
//run("RGB Merge...", "red=R green=G blue=B keep");
run("RGB Merge...", "red=R green=G blue=B");
Jon
Jarek Sacha wrote:
> Jon Harman wrote:
>> Hi,
>>
>> I just tried it out on raw data from my new Sony DCS-R1. It works!
>> That is great, thanks for making this available.
>> So the question is: where are you going with this? I don't know
>> anything about dcraw and will start looking into it, but there are
>> lots choices to be made when converting raw data, not to mention
>> trying to reverse engineer the magic settings of the various
>> manufacturers.
> The intention of DCRaw Reader plugin is to simply provide a convenient
> way of using the dcraw binary by Dave Coffin. Not planing to add any
> camera specific functionality that is not in dcraw. Currently only the
> most basic dcraw options are supported by DCRaw Reader plugin. Support
> for more dcraw options may be added in the future.
>
> There is also a pure Java project at
https://jrawio.dev.java.net/ that
> helps reading raw images using javax.imageio. It works with with
> ImageJ, to some extent, using the Image IO plugin bundle v.2
> (
http://ij-plugins.sourceforge.net/plugins/imageio/). I was able to
> read with jrawio and ImageJ raw image from Canon Rebel XT, but not
> from Canon D60, did not try other formats. Note that Image IO plugin
> bundle v.2 is in alpha stage and not release yet, you will need to
> build it from CVS source.
>
> Jarek
>>
>> I am new to the digital raw world, but it seems a real can of worms
>> to me. Each manufacturer has its own proprietary raw format, and
>> does not disclose the various white balance curves, contrast curves,
>> sharpening algorithms, noise reduction algorithms, etc that they
>> use. I see that there are a bunch of raw conversion programs out
>> there with Adobe Camera Raw (a plugin to Photo$hop) in the lead.
>> What a headache these poor guys have trying to keep abreast of all
>> the new cameras.
>>
>> Sony gives away a program to read its raw files, but the program is
>> slow and appears to be disliked by users. It seems stuck at version
>> 1.0. Why Sony cares to create a proprietary format for its raws and
>> then doesn't make the effort to create a good reader is a mystery to me.
>>
>> Jon
>>
>