Skip to content

Latest commit

 

History

History
90 lines (74 loc) · 3.55 KB

README.md

File metadata and controls

90 lines (74 loc) · 3.55 KB

IAtoDNG

Converts Sinar Emotion 22, 54, 54LV, 75, and 75LV .IA files to DNG files.

Features

  • Parses the META section of Sinar IA files and converts them to the proper exif tags.
    • Note - Capture One can't see these for some reason, but Lightroom can.
  • Is able to find and apply the dark frame/bias frame that emotion 22 and 75 backs capture automatically. (These are the BR files included with the IA files.)
  • Uses the .WR flat file produced by emotion 75 backs to correct differences between CCD tiles.
  • Can Apply a manually created white flat to each image. This corrects the difference between the CCD tiles and any dust in the optical path (If using a lens).

Install

For now, this is not packaged as a Python module. You have to clone the repo and run things manually.

git clone git@github.com:mgolub2/IAtoDNG.git
cd IAtoDNG
python3 -m venv venv
source venv/bin/activate
python -m pip install briefcase
briefcase dev  # will install dependencies for your platform and start the GUI app

Building a package for your platform

This will build a .app on MacOS and a .exe on Windows

briefcase create
briefcase build 
briefcase run  # if you want to run your app right away

GUI Usage

  1. select the input directory container .IA images and .BR (and .WR possibly) files.
  2. select an output directory for the DNGs to be saved to.
  3. Click process, and wait a bit.

CLI Usage

> python3 sinar_ia.py --help
usage: sinar_ia.py [-h] [-o OUTPUT] [-f] [-d] [--enable-hotpixel-dark-mode] [--build-flat BUILD_FLAT] images [images ...]

positional arguments:
  images                List of images or directory of images to process.

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output directory.
  -f, --flat-disable    Disable flat (white reference) files
  -d, --dark-disable    Disable dark (black reference) files
  --enable-hotpixel-dark-mode
                        Use a median filter and the bias+dark current frame to filter hot pixels more heavily. NOT recommended for optimal quality...
  --build-flat BUILD_FLAT
                        Use this directory of files to build a flat file.

Examples

Process a directory of Sinar IA images:

python3 sinar_ia.py /VOLUMES/PHASEONE/002000E8.EMO/ -o ~/Pictures/IAtoDNG_output

Building flat files from directory of images:

Currently untested for v0.2.1.

python3  sinar_ia.py --build-flat ~/Pictures/emotion22_80mm_f4_iso50_flats/
  • This will store a flat file for the ISO/lens combination in ~/.iatodng/flats/.
  • There is no limit to the number of files you can use to generate your master flat, but the recommendation seems to be 20+ shots.
  • If the Meta section of the raw file does not have any lens info, then the file is saved with 0mm as the focal length - It seems only Rollei AF(D) lens record their focal length to the raw metadata.
  • I recommend creating a "lensless" flat file(s) without any lens mounted, for each ISO to balance the CCD halves and remove sensor dust. Any lens that does not report a focal length will use the correct lensless flat file for that iso.

TODO

  • Read and apply the CCD calibration files included with Sinar backs.
    • This is possibly already captured by emotion 75 .WR files.
  • Package this as a DMG and installer for windows to make things simpler for non CLI folks.
  • Understand and apply the LINEAR and BLEMISH components of .WR files.
  • Tweak meta processing for other Camera bodies, such as the Mamiya AFD.
  • This could all be wrong :)