0
\$\begingroup\$

Is there a relatively easy to use tool that will allow me to demosaic some raw data stored in a TIFF file (not a standard raw file such as DNG, NEF, etc.), assuming a Bayer pattern? The TIFF contains no metadata, so should be possible to specify any necessary additional information separately.

\$\endgroup\$
10
  • \$\begingroup\$ Use case: same as here. \$\endgroup\$
    – Szabolcs
    Sep 13, 2013 at 15:36
  • \$\begingroup\$ Do you have three different color layers and are trying to demosaic and combine, or an already combined file with some patterns you are trying to remove? \$\endgroup\$ Sep 13, 2013 at 15:50
  • 2
    \$\begingroup\$ This question appears to be off-topic because it is about programming for image processing, not about photography. \$\endgroup\$
    – mattdm
    Dec 22, 2013 at 13:58
  • 1
    \$\begingroup\$ @mattdm It's not about programming, nor about image processing methods. The question is asking for a software tool to do something, like many other questions on this site. \$\endgroup\$
    – Szabolcs
    Dec 22, 2013 at 15:55
  • 1
    \$\begingroup\$ "To do something" is the key. This site is for questions about photography, not the arbitrary set of all questions that might have to do with digital image files. It doesn't mean anything bad about the question in an absolute sense that it doesn't fit with that theme. It's just not the right place for it. \$\endgroup\$
    – mattdm
    Dec 22, 2013 at 19:17

2 Answers 2

1
\$\begingroup\$

Most raw formats are actually stored in .tiff containers. They're simply proprietary data in a .tiff container.

Three thoughts for you for what you are trying to do:

1) Try Dave Coffin's DCRaw package, without or with a GUI front-end.

2) You could also read the file into Photoshop as a (.raw) format; it would come in as a single plane and require manipulation to be converted to RGB.

3) If you are or know a programmer, it would not be hard to parse this from a simple TIFF file without any metadata (perhaps an hour's work or so).

\$\endgroup\$
1
\$\begingroup\$

SOLUTION FOUND: Change the extension of your file from TIF to DNG (for example "image.tif" would become "image.dng"). RawTherapee will now read it like any other raw file and demosaic it however you like!

\$\endgroup\$
2
  • \$\begingroup\$ Really? Do TIFF and DNG use the same underlying format? Can't try til next week, but I am curious. \$\endgroup\$
    – Szabolcs
    Oct 25, 2017 at 18:47
  • \$\begingroup\$ DNG is based on the TIFF format, but I don't really know much more than that. I was getting desperate for a solution to this problem so I tried this trick because it had worked for me in the past with certain video file extensions, some of which are "containers" of other formats. I was very surprised that this worked. \$\endgroup\$ Oct 27, 2017 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.