I could not find a DCRaw library.
I found dcraw.c and compiled it:
C:\Users\me\Downloads\dcraw>cl dcraw.c /DNO_JPEG /DNO_LCMS /O2b2 /Gry
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
dcraw.c(360) : warning C4133: 'function' : incompatible types - from 'UshORt *'
to 'char *'
dcraw.c(360) : warning C4133: 'function' : incompatible types - from 'UshORt *'
to 'char *'
dcraw.c(8607) : warning C4133: 'function' : incompatible types - from 'UshORt *'
to 'char *'
dcraw.c(8607) : warning C4133: 'function' : incompatible types - from 'UshORt *'
to 'char *'
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:dcraw.exe
dcraw.obj
I put in in my path and ran it from J7:
f=:'Z:\My Pictures\2011\2011 01 29\_MG_1078.CR2'
spawn_jtask_ 'dcraw -6 -T -o 3 -w -v "',f,'"'
Loading Canon EOS DIGITAL REBEL XT image from Z:\My Pictures\2011\2011 01
29\_MG_1078.CR2 ...
Scaling with darkness 257, saturation 4095, and
multipliers 2.351670 1.000000 1.350688 1.001965
AHD interpolation...
Converting to WideGamut D65 colorspace...
Writing data to Z:\My Pictures\2011\2011 01 29\_MG_1078.tiff ...
It seems to work fine this way, but it does not seem to provide general image
support, only raw image conversion.
On 1/31/2011 23:58, greg heil wrote:
> Perhaps an interface to the DCRaw library would be MUCH more useful as
> a general tool..
>
> greg
> ~krsnadas.org
>
> --
>
> from Devon McCormick<[email protected]>
> to Programming forum<[email protected]>
> date 31 January 2011 18:58
> subject Re: [Jprogramming] Fractals Visualization and J
>
> I think reading and writing images are all I use from image3, so this
> may be sufficient for my purposes. I'll have to try some conversions
> to see if this is the case.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm