Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: scantools - a few tools to help with film scanning

  1. #1

    Join Date
    May 2017
    Posts
    232

    scantools - a few tools to help with film scanning

    I have been writing some software to help with film scanning to do the following:

    1. Speed up flat bed scanning, so a full platen of negatives can be scanned in 1 pass. So for example I can scan 24 35mm frames in 10 minutes at 2400dpi, on my old Epson 4990.

    2. Software to invert both B&W and colour negatives, using the same method that is used in Cineon/DPX. i.e. just about any movie you see that was shot on film in the last twenty years.

    It is an open source project so free to use and extend etc. Some of colour code needs some revamping, but I am using it to good effect for my current B&W work.

    For a B&W negative the result is roughly what would be printed in grade 00 paper, so I find it a good starting point.
    A colour negative results in low contrast image, that should only require a contrast adjustment and some linear colour balancing.

    It in its current form it probably only usable if you have some basic programming/development skills, you need a bash shell and Imagemagick. PM me if you need some help, but it is a start.

    https://github.com/laurencelumi/scantools

  2. #2

    Join Date
    Oct 2006
    Location
    SoCal
    Posts
    1,069

    Re: scantools - a few tools to help with film scanning

    This looks awesome. Been busy but I have a v700 hooked up to my ubuntu. I usally unplug and stick it onto my Win10 for some scans like 35mm batch scans which Vuescan can't do. Well, it can but so much easier on windows.
    --

  3. #3
    Pali K Pali K's Avatar
    Join Date
    Aug 2014
    Location
    MD, USA
    Posts
    1,397

    Re: scantools - a few tools to help with film scanning

    Thank you for this Ted. Looking forward to trying it out and will let you know how it goes.

  4. #4
    Pali K Pali K's Avatar
    Join Date
    Aug 2014
    Location
    MD, USA
    Posts
    1,397

    Re: scantools - a few tools to help with film scanning

    Hi Ted,

    Good news is that I got it to work under Ubuntu and have a few notes for you from my testing. I am using Gamma 1 scans from my drum scanners to test and here is what I am noticing. Large images fail to convert and I have noticed anythign over 10MB seem to fail for me all together. It creates at small 386kb file and never finishes. For files that do convert, I am getting very dark conversions even with DMAX set to 1.

    Here is the negative I am using in case you want to test it yourself.
    Download Original TIFF File



    Hope this is helpful!

    Pali

  5. #5

    Join Date
    Feb 2008
    Posts
    399

    Re: scantools - a few tools to help with film scanning

    Hi Pali,

    try it with "-dmax auto".

    Hi Ted,

    I have a copule of notes too (Mac OS X):
    1. It is a good idea to have all the variables used in the script initialized at the beginning . Example "exiftool".
    2. The script did convert a 128 Mb file for me but would not anything above that. It simply stops using CPU and does nothing.
    3. The effect of conversion looks similar to that obtained in Photoshop with either "Subtract" or "Divide" of a layer filled with unexposed border color. The converted image blacks are at r=0, g=0, b=0 (clipped) and white point requiring significant tuning (with Auto Color (Enhance per Channel Contrast; No "Neutralize the mid-tones")). Visually and practically (math and algorithms aside), in my opinion, a simple combination of 2 layers (Invert) + (Curves with Enhance per Channel Contrast; No "Neutralize the mid-tones") provide for more flexibility in balancing the collors as neither Blacks nor Whites appear to be clipped.

    Best Regards,
    SergeyT

  6. #6

    Join Date
    Jul 2016
    Posts
    4,566

    Re: scantools - a few tools to help with film scanning

    Ted, this is an amazing set of tools...

    Thanks for sharing it !

    I'll read a bit the code...

  7. #7

    Join Date
    May 2017
    Posts
    232

    Re: scantools - a few tools to help with film scanning

    Hi Pali,

    I am not sure why it does not work. If you send me a PM, with details of

    #convert -version
    and maybe a log etc.

    The colour code at moment does does not have make any adjustments yet for printing density. i.e. Cineon/DPX values should represent how the paper sees the negative instead of the human eye.

    I am focusing on using at the moment on about 50 odd rolls of HP5, I can scan a roll in under 20minutes on my flatbed which is big improvement. So I put the colour calibration code aside for a little bit...

    Anway,

    I did this

    #invertscan -c1 -fb 0.914557,0.602957,0.480313 -dmax auto pali.tif
    Expirmental code
    Normalised values are:
    max min
    Red: 0.901625 0.311894
    Green: 0.591104 0.179248
    Blue: 0.447105 0.0554971
    using calculated FB: 0.914557 0.602957 0.480313
    log() values are:
    base shadow DMax
    Red: 0.0387892 0.00618483 0.467204
    Green: 0.219714 0.00862244 0.526832
    Blue: 0.318476 0.0311148 0.937254
    TODO need to do check of all three maxes
    using auto calculated dmax
    dmax: 0.937254
    scale: 17952.6
    1 image files updated
    inverting: pali-P.tif

    which results in this:

    Click image for larger version. 

Name:	pali-P.jpg 
Views:	45 
Size:	84.8 KB 
ID:	182163

    there is no attempt to balance anything at this stage but the intensity ratios should all be linear or a gamma of 1 except where the film the toe and shoulder compresses these ratios.

    I use a curve like this to represent the paper.
    Click image for larger version. 

Name:	Screenshot from 2018-09-04 19-37-33.png 
Views:	29 
Size:	17.0 KB 
ID:	182165

    and balance the image using linear controls to get some thing like
    Click image for larger version. 

Name:	pali-P-1.jpg 
Views:	86 
Size:	109.0 KB 
ID:	182164

    Eventually I like to incorporate the code directly into Rawtherepee etc.

    For BW I have found it very effective.

  8. #8

    Join Date
    May 2017
    Posts
    232

    Re: scantools - a few tools to help with film scanning

    Quote Originally Posted by SergeyT View Post
    Hi Pali,
    2. The script did convert a 128 Mb file for me but would not anything above that. It simply stops using CPU and does nothing.
    Its possible your installation of imagemagick is resource constrained. Try

    #identify -list resource

    this will list any constraints


    Quote Originally Posted by SergeyT View Post

    3. The effect of conversion looks similar to that obtained in Photoshop with either "Subtract" or "Divide" of a layer filled with unexposed border color. The converted image blacks are at r=0, g=0, b=0 (clipped) and white point requiring significant tuning (with Auto Color (Enhance per Channel Contrast; No "Neutralize the mid-tones")). Visually and practically (math and algorithms aside), in my opinion, a simple combination of 2 layers (Invert) + (Curves with Enhance per Channel Contrast; No "Neutralize the mid-tones") provide for more flexibility in balancing the collors as neither Blacks nor Whites appear to be clipped.
    No clipping ever occurs. In the file the darkest information sits at 0, for convenience, and the brightest sits at the maximum, if you use dmax=auto. i.e it will adjust for the density of the negative (-dmax=auto) to use all of the 16bit values available, or you use a set max density value that you choose. For the straight line portion of the characteristic curve the intensity ratios should then be linear in relation to the original scene. i.e a value that is 10 times brighter than another, should just as same 10x ratio as in the original scene. This means the image will appear low contrast on a monitor, print etc.

    I am reasonably pleased that it is useful for BW, the single pass scan of entire platten for roll film, speed up the laborious process of scanning a film of a flat bed, and results in a scan that I find easy to work with.

    I am still working out a few things with the colour side of things, the main thing that is really outstanding is to calibrate the scanners spectral sensitivity, to match the spectral sensitivity of the print stock which is how the film was designed to work in the first place.

    Plus take a few photos from time to time...

  9. #9
    Pali K Pali K's Avatar
    Join Date
    Aug 2014
    Location
    MD, USA
    Posts
    1,397

    Re: scantools - a few tools to help with film scanning

    Ted, that are some very impressive results with just simple commands. I'll spend more time with it this weekend and let you know how everything goes. I have decent programming skills as well and will try to study your code and ImageMagick commands to see if I can help out with this project.

    Pali

  10. #10
    Pali K Pali K's Avatar
    Join Date
    Aug 2014
    Location
    MD, USA
    Posts
    1,397

    Re: scantools - a few tools to help with film scanning

    I think getting the film base values right makes a huge difference. Here is a quick conversion using Ted's commands above followed with simple curve and color adjustments.


Similar Threads

  1. Tools and methods for sheet film washing
    By Ari in forum Darkroom: Equipment
    Replies: 23
    Last Post: 19-Mar-2016, 20:47
  2. Need DIY Tools?
    By Preston in forum Resources
    Replies: 1
    Last Post: 18-Aug-2014, 13:47
  3. Scanning Film Speed Test/what's your favorite film testing method?
    By sully75 in forum Darkroom: Film, Processing & Printing
    Replies: 26
    Last Post: 2-Aug-2010, 12:41
  4. Betterlight Scanning Back for Film Scanning?
    By William Leigh in forum Digital Hardware
    Replies: 4
    Last Post: 18-Dec-2004, 13:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •