Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Reading RW2 (Panasonic) raw digital image format

by BrowserUk (Pope)
on May 18, 2017 at 21:14 UTC ( #1190565=perlquestion: print w/replies, xml ) Need Help??
BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

The title says it all really. I'm looking for a module (or format information) to allow me to read Panasonic RW2 format RAW DSC image files (and export them as 48-bpp tiff format.)

Thanks.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
  • Comment on Reading RW2 (Panasonic) raw digital image format

Replies are listed 'Best First'.
Re: Reading RW2 (Panasonic) raw digital image format
by beech (Priest) on May 19, 2017 at 00:03 UTC

      Thank you. I think that dcraw will give me what I'm looking for.

      (Only think, because there are a lot of options the effect of which I need to understand; and I need to understand what ends up in the output files; which isn't what I was expecting.)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
Re: Reading RW2 (Panasonic) raw digital image format
by kevbot (Curate) on May 19, 2017 at 04:33 UTC
Re: Reading RW2 (Panasonic) raw digital image format
by Mr. Muskrat (Canon) on May 18, 2017 at 22:22 UTC

      I've seen that, but:

      For certain RAW images, the shooting conditions may be applied when developing the images. (Images taken using the Black and White and Cool settings are developed in black and white or cool.)

      Basically, whatever gets presented on screen - via any application -- is an interpolation. Screens can (at best) display 24-bit rgb.

      BSI-CMOS sensors capture 12bpp or 14bpp, thus you need 48-bit rgb to store all the info.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
Re: Reading RW2 (Panasonic) raw digital image format
by RichardK (Parson) on May 18, 2017 at 22:56 UTC
    The only thing I can find suggests it's based on tiff. Maybe you could try hacking the magic word and seeing if a standard tiff library will read it?
    Panasonic : RW2. Example or RAW. See ExifTool Intel byte ordering. TIFF magic word is 0x55 instead of 0x2a. Firs +t IFD at offset 0x18 for RW2, 8 for RAW. No Makernote tag. full resolution image in IFD#0.

      It's worth a try. I'll see what Imager makes of them.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
Re: Reading RW2 (Panasonic) raw digital image format
by stevieb (Monsignor) on May 18, 2017 at 21:36 UTC

    What (software) do you currently use to perform this work?

      I don't. Though there are many pieces of software -- image viewers like photoshop and the like that can read them, but they can't (AFAIK) output the full range of values to a non-proprietary file format that I can then use as the source for manipulating the data in code -- they are oriented to converting the pixel data to "photos" for display and viewing, which invariably involves interpolations -- noise reduction, sharpening, color balancing etc. -- which I don't want. I want the raw data.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1190565]
Approved by stevieb
Front-paged by 1nickt
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-05-25 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?