Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
Thread started 01 Sep 2012 (Saturday) 15:39
Search threadPrev/next
sponsored links (only for non-logged)

Help with baby photo restoration

 
Milutiche
Senior Member
Avatar
819 posts
Gallery: 36 photos
Likes: 262
Joined Jul 2010
Location: Whangarei, New Zealand
     
Sep 01, 2012 15:39 |  #1

Hi there, Im after a bit of help with some photos that were taken about 30 years ago, I don't have the negatives but I have taken RAW shots of the photos with my 7d and now I want to try to get the colour back and remove some of the spots etc. this particular one Baby Me (external link) is a small photo (only 5.5 x 8 cm) and I do have a larger copy somewhere

If anyone would like to give me some tips on how to restore this using either Lightroom4, CS5 or Elements 10, feel free to have a go yourself and re-post the results here.

As a point of reference the woolen sweater I was wearing was baby blue (not very scientific I know) so you might be able to work from there.

Thanks, Jason


www.actionimages.net.n​z
Gear List
Sports Photos on Facebook (external link)
Sports Photos on Instagram (external link)

  
  LOG IN TO REPLY
Merlin_AZ
Senior Member
Avatar
872 posts
Likes: 17
Joined Mar 2010
     
Sep 01, 2012 16:17 |  #2

The first thing to do in Ps is under Levels, pull your triangles inwards and adjust the middle ones slightly as well, for each R/G/B separately.
Cloning shouldn't be too bad.
The paper pattern will be the biggest issue

IMAGE: https://photography-on-the.net/forum/images/hostedphotos_lq/2012/09/1/LQ_613006.jpg
Image hosted by forum (613006) © Merlin_AZ [SHARE LINK]
THIS IS A LOW QUALITY PREVIEW. Please log in to see the good quality stuff.



  
  LOG IN TO REPLY
Milutiche
THREAD ­ STARTER
Senior Member
Avatar
819 posts
Gallery: 36 photos
Likes: 262
Joined Jul 2010
Location: Whangarei, New Zealand
     
Sep 01, 2012 20:19 |  #3

cheers Merlin, hopefully if I find the bigger version I shouldn't have as much issue with the paper pattern


www.actionimages.net.n​z
Gear List
Sports Photos on Facebook (external link)
Sports Photos on Instagram (external link)

  
  LOG IN TO REPLY
cmchavis
Member
Avatar
160 posts
Joined Mar 2008
Location: Indiana
     
Sep 02, 2012 09:13 as a reply to  @ Milutiche's post |  #4

Using a FFT you can get rid of the paper pattern. There are instructions out there for using FFT plugins to get rid of pattern noise - here is a youtube video (external link). As stated above - the rest is just clone stamping and curves

IMAGE: https://photography-on-the.net/forum/images/hostedphotos_lq/2012/09/1/LQ_613103.jpg
Image hosted by forum (613103) © cmchavis [SHARE LINK]
THIS IS A LOW QUALITY PREVIEW. Please log in to see the good quality stuff.



  
  LOG IN TO REPLY
kirkt
Cream of the Crop
6,597 posts
Gallery: 5 photos
Likes: 1542
Joined Feb 2008
Location: Philadelphia, PA USA
     
Sep 02, 2012 13:08 |  #5

IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-hWMGtNm/0/X3/Final-X3.jpg


Here is a crop of the pattern you are trying to suppress, as well as the FFT of the isolated pattern:

IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-7b3W2PQ/0/X3/PatternAndFFT-X3.jpg

You can see that the pattern is almost like a honeycomb hexagonal cell. Note that the shape of the cell is mimicked in the FFT - the bright areas of the FFT represent high magnitude spatial frequency components. If the image that you are analyzing has certain shapes or directionality to it, you will see this reflected in the FFT. You want to design a filter that suppresses those white dots and lines on the FFT that represent things you want to get rid of, like the pattern from the photobook mounting sheet.

Here is the FFT of the L channel of the full image, with the corresponding filter I made to reject the pattern:

FFT
IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-x7xDq3X/0/X3/FFT-of-Lchannel-X3.jpg


Surface Plot

IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-RrzdDn5/0/X3/SurfacePlotofFFT-X3.jpg

and

Filter
IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-pbPRsqc/0/X3/filter-X3.jpg

areas of white let the FFT data pass, areas of black reject that portion of the FFT. So, I painted black dots over the white peak areas of the FFT that correspond to the pattern I want to remove. You can see the hexagonal pattern of peaks in the FFT (the thorny looking peaks in the surface plot) reflected in the filter.

Here is a 100% crop before and after of the L channel with a custom filter applied to the L channel in the frequency domain:

IMAGE: http://kirkt.smugmug.com/Photography/Photo-of-the-Day/i-qh3QJ3d/0/X3/BeforeAfterFFT-X3.jpg

The rest of the retouch was repair and color restoration. I did not sharpen or add contrast, etc. So this retouch would leave you with a good starting point to make your final edits.

The FFT filtering was performed in ImageJ, the modern version of the great NIH Image. Unlike the old NIH Image which was written in Pascal and Mac only, ImageJ is java and platform-independent. It is free.

http://rsbweb.nih.gov/​ij/ (external link)

Everything else I did in Photoshop. I don't use Elements, but I would imagine it has all of the basics that Photoshop has. I did the initial work in Lab, and then finished it RGB.

Here is a link to the full res image you can right click and Save As:

http://kirkt.smugmug.c​om …298747&k=WZJpqB​r&lb=1&s=O (external link)


Kirk

Kirk
---
images: http://kirkt.smugmug.c​om (external link)

  
  LOG IN TO REPLY
Milutiche
THREAD ­ STARTER
Senior Member
Avatar
819 posts
Gallery: 36 photos
Likes: 262
Joined Jul 2010
Location: Whangarei, New Zealand
     
Sep 02, 2012 13:57 |  #6

wow guys thats amazing, thanks Kirkt for the indepth tutorial! I will most definitely try that out over the coming days. can I ask how long it would take "you" to restore a photo like this?


www.actionimages.net.n​z
Gear List
Sports Photos on Facebook (external link)
Sports Photos on Instagram (external link)

  
  LOG IN TO REPLY
kirkt
Cream of the Crop
6,597 posts
Gallery: 5 photos
Likes: 1542
Joined Feb 2008
Location: Philadelphia, PA USA
     
Sep 02, 2012 14:11 |  #7

You're welcome. It took about 15 minutes to get to the image I posted.

kirk


Kirk
---
images: http://kirkt.smugmug.c​om (external link)

  
  LOG IN TO REPLY
Merlin_AZ
Senior Member
Avatar
872 posts
Likes: 17
Joined Mar 2010
     
Sep 02, 2012 15:16 |  #8

Very nice, Kirk.




  
  LOG IN TO REPLY
#NAME#
Member
31 posts
Likes: 1
Joined May 2010
     
Sep 03, 2012 03:41 as a reply to  @ Merlin_AZ's post |  #9

Thanks for introducing me to ImageJ, kirk. Had a lot of fun with it this evening.




  
  LOG IN TO REPLY
Kolor-Pikker
Goldmember
2,790 posts
Likes: 59
Joined Aug 2009
Location: Moscow
     
Sep 03, 2012 03:56 |  #10

Nice show on using FFT, Kirk, saved me the trouble of doing all that myself LOL.


5DmkII | 24-70 f/2.8L II | Pentax 645Z | 55/2.8 SDM | 120/4 Macro | 150/2.8 IF
I acquired an expensive camera so I can hang out in forums, annoy wedding photographers during formals and look down on P&S users... all the while telling people it's the photographer, not the camera.

  
  LOG IN TO REPLY
Bob_A
Cream of the Crop
Avatar
8,739 posts
Gallery: 48 photos
Likes: 199
Joined Jan 2005
Location: Alberta, Canada
     
Sep 03, 2012 17:10 |  #11

kirkt wrote in post #14938611 (external link)
You're welcome. It took about 15 minutes to get to the image I posted.

kirk

This is great stuff Kirk!

Any chance you could show a step by step tutorial? I also have a few scans of prints made with similar surface finish and would like to try this out. I downloaded the software, was able to see the FFT, but can't figure out how to make and apply the filter.


Bob
SmugMug (external link) | My Gear Ratings | My POTN Gallery

  
  LOG IN TO REPLY
kirkt
Cream of the Crop
6,597 posts
Gallery: 5 photos
Likes: 1542
Joined Feb 2008
Location: Philadelphia, PA USA
     
Sep 03, 2012 17:32 |  #12

Sure - I'll try to put something together tonight.

@Milutiche - is it okay for me to use your image to elaborate upon the FFT approach?

thanks,

kirk


Kirk
---
images: http://kirkt.smugmug.c​om (external link)

  
  LOG IN TO REPLY
Merlin_AZ
Senior Member
Avatar
872 posts
Likes: 17
Joined Mar 2010
     
Sep 03, 2012 22:10 |  #13

Kirk, that would be great!
I don't have the need right now, but it would be nice to have the plugin and instructions put aside for the time when I need it in a pinch.




  
  LOG IN TO REPLY
kirkt
Cream of the Crop
6,597 posts
Gallery: 5 photos
Likes: 1542
Joined Feb 2008
Location: Philadelphia, PA USA
     
Sep 03, 2012 22:15 |  #14

Well, in the interim, here's some helpful information to get you started.

Introduction

As a side note, the FFT (Fast Fourier Transform) is a representation of the image in terms of its frequency components. Fourier came up with the powerful concept that any periodic signal can be represented by a summation of sine and cosine functions of varying amplitude, frequency and phase. The classic example of this is the step function (in graphical terms this would be a high contrast edge like a black line on a white background) - this is shown in the Wikipedia entry here:

http://upload.wikimedi​a.org …px-Fourier_Series.svg.png (external link)

IMAGE: http://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Fourier_Series.svg/500px-Fourier_Series.svg.png

As you add more terms you get a more accurate representation of the signal. So, the FFT of a signal takes the signal in one form (for example, the spatial representation in terms of pixel intensity in the X and Y dimensions) and transforms that signal into the frequency domain, where certain kinds of mathematical operations are a lot more efficient and easier to perform.

When you open an image in ImageJ, it can present the image to you in a few ways. The easiest way I have found to work with images that need FFT filtering is to convert the original TIFF to grayscale and work with the grayscale image in ImageJ to develop your filter. You can do this a number of ways - I usually take the color original, convert to Lab in Photoshop and use the L channel as my starting point. If the pattern data are predominantly in the L channel (i.e., not color information) then I can FFT and filter the L channel black and white image, and simply replace the original L channel with the filtered one -this is what I did in the above image.

So, how to go about FFTing and building a filter.

Creating the FFT of your patterned image

Download ImageJ here - it is free and Java, platform independent:

http://rsbweb.nih.gov/​ij/ (external link)

Open your black and white unfiltered, patterned image in ImageJ and choose the menu item "Process > FFT >FFT" - this will perform the Fast Fourier Transform of the image from the spatial domain into the frequency domain. What you see as a result of the FFT is a representation of sines and cosines, so to speak, contained in your image. The grayscale representation is magnitude or power spectrum (think amplitude of the sine functions) of your image -increasing grayscale intensity means higher amplitude and the distance away from the center of the FFT is increasing frequency. So, information in the middle of the FFT is low frequency image content, while white dots, stars and lines away form the center of the FFT represent high frequency content. Understanding this is critical to being able to interpret the FFT in terms of what dots and stars and lines you want to suppress when you perform the filtering. Regular patterns usually show up as distinct patterns of high intensity dots and stars on the FFT power spectrum.

Save your FFT power spectrum image as a TIFF.

Filter Construction

Filtering is the selective rejection of certain frequency components - the filter gets applied and then the IFFT (Inverse FFT) is performed to reconstruct the filtered image - i.e., take the filtered data from the frequency domain back to the spatial domain.

Bring your saved FFT power spectrum image into Photoshop or some similar paint program. Here is where you will construct the filter. Identify all of the dots and blips that represent the pattern (again, this is where you need to play around with FFTing a bunch of images to get the hang of interpreting the FFT in terms of image content) and paint a black dot over the features you want to reject - be conservative and choose a brush size that will just cover each beep and boop - if you start filtering real content, your image will suffer.

I usually use a soft brush (0 hardness) - In Photoshop, I open the FFT image that I saved in ImageJ and then create a new layer over that image. I paint the black dots on this new layer. Once I am finished, I insert a new layer between the FFT background image and the painted filter - I fill this new layer with white. Now I have a filter image that is white everywhere I want to pass the FFT data and black where I want to reject the FFT data. Flatten and save as a TIFF.

Applying the Filter in ImageJ

The way that ImageJ applies this filter is not immediately obvious. You need to open the filter image in ImageJ for ImageJ to be able to use it.

So, in ImageJ

1) Open the original L channel (or black and white) image of the patterned scan.
2) Open the filter image that you just built based in the FFT.

To apply the filter to the original image with the pattern, make the patterned original the active image and then choose "Process > FFT > Custom Filter ..."

A dialog box will open with a dropdown menu of all of the OPEN images available to be used as filters. Choose your filter image and the original will have the FFT performed, filtered and the filtered IFFT (reconstructed filtered image) will be spit out.

Pat yourself on the back and crack open a cold one!

If there is still pattern in the filtered image, it usually means you did not filter out (paint over) all of the little beeps and boops that you needed to. Sharp-edged patterns mean that there is a lot of high-frequency content that needs to be suppressed.

The FFT power spectrum image is usually pretty low contrast - so, in Photoshop, before you go about painting your black dots and lines in your filter layer, consider applying an adjustment layer to the FFT to increase contrast - you will find little white dots and stars out near the edges of the image that were hiding previously. Make sure you get those guys too.

Have fun!

kirk

Here is a similar exercise I did years ago (on the Neat Image forum) addressing a problem identical to the OPs here, but where someone was misusing Neat Image noise reduction software to try to cancel out the pattern. I have been egging on the Neat Image guy for a while to add FFT filtering to his plug-in. :)

IMAGE: http://kirkt.smugmug.com/Other/Another-FFT-Processing-Example/Womancomparem/45700479_EV8Rz-X2.jpg

IMAGE: http://kirkt.smugmug.com/Other/Another-FFT-Processing-Example/WomanFFTandMask/45700480_ZoFdr-X2.jpg

IMAGE: http://kirkt.smugmug.com/Other/Another-FFT-Processing-Example/WomanNIScreenShot/45700483_zLtjZ-X2.jpg

IMAGE: http://kirkt.smugmug.com/Other/Another-FFT-Processing-Example/WomanFilterComp/45700484_3hrU5-X2.jpg

Kirk
---
images: http://kirkt.smugmug.c​om (external link)

  
  LOG IN TO REPLY
Milutiche
THREAD ­ STARTER
Senior Member
Avatar
819 posts
Gallery: 36 photos
Likes: 262
Joined Jul 2010
Location: Whangarei, New Zealand
     
Sep 04, 2012 00:34 |  #15

Hey all, Yeah Kirk, feel free to use my image, I don't mind at all if this thread becomes of use to anyone in need of help with photo restorations. Still havn't managed to have a go myself but I assure you I will soon


www.actionimages.net.n​z
Gear List
Sports Photos on Facebook (external link)
Sports Photos on Instagram (external link)

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

12,590 views & 0 likes for this thread, 12 members have posted to it and it is followed by 3 members.
Help with baby photo restoration
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is Monkeytoes
1255 guests, 179 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.