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.

  • Use case: same as here. – Szabolcs Sep 13 '13 at 15:36
  • 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? – Patrick Hurley Sep 13 '13 at 15:50
  • 2
    This question appears to be off-topic because it is about programming for image processing, not about photography. – mattdm Dec 22 '13 at 13:58
  • 1
    @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. – Szabolcs Dec 22 '13 at 15:55
  • 1
    "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. – mattdm Dec 22 '13 at 19:17

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).


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!

  • Really? Do TIFF and DNG use the same underlying format? Can't try til next week, but I am curious. – Szabolcs Oct 25 '17 at 18:47
  • 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. – Corey Rueckheim Oct 27 '17 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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