Skip to main content
Colin Southern
Known Participant
March 3, 2024
Question

Correcting Image Distortion After Photomerging

  • March 3, 2024
  • 5 replies
  • 3822 views

I digitize a lot of painted art for artists.  Often their work has a high aspect ratio, thus the best way to photograph it is to shoot it in sections and then photomerge the individual images into a single composite image.

 

My first step in processing the resultant image is to "square-up" the sides using the geometry tool in the ACR filter; this does a great job of getting the (relatively straight) sides vertical - and the left and right corners the same height - but the images typically still have a LOT of concave curviture along the top and bottom edges.

 

The distortion tool in ACR can fix this horizontal distortion, but only at the expense of turning the relatively straight image sides into curves with a lot of convex distortion; what I really need is a tool that adjust distortion along the top/bottom edges separately from the sides, but I don't know of one.

 

What I usually end up doing is getting the best compromise using the distortion adjustment tool in ACR and then using a warp transform to manually push/pull pixels into place. To date this approach has been "adequate", but not great (especially if the art has already been framed and I can't "cheat" by cropping off inperfections). Sometimes adding aditional adjustment points to the warp transform helps, but the usual result just seems to add high-frequency ripples.

 

Just wondering if anyone can suggest a better technique or tool?

 

Many thanks,

 

This topic has been closed for replies.

5 replies

Known Participant
March 5, 2024

I do mostly architecture and fine art reproduction... I correct geometry mostly everything in photoshop, beside CAR, you can do a lot in photoshop... , but sometimes I have to use an outside tool-software DXO view Point....

 

benoit Kapture foto
Colin Southern
Known Participant
March 5, 2024

Thanks for that. Does DXO have the equivalent of an ACR Distortion tool that can be constrained to work in either the vertical or horizontal plane only?

 

Inspiring
March 4, 2024

I would suggest this process.

 

Keep the camera stationary and move the art. Start at the left or right top edge. Mark field of view with markers or tape. Overlap at least 30% (Photoshop says 40%). If the piece is larger than field of view shoot in two strips by rotating the art 180 degrees and shoot the sections. Even lighting is essential, but can be improved using Equalight software.

 

Process files and make tiffs. Crop out superfluous areas outside the art(PS gets confused if too much background is visible in the merge), save files. Photomerge. If rotating the art process two separate photomerged strips. Then merge the two resulting strips. Once merged use Perspective Crop with very precise placement of the corners. Be sure to undo this step if it appears distorted as it sometimes goes awry. Redo crop.

 

Once it is merged inspect sides and top and bottom for curvature. If shot background is visible then convert background layer to a regular layer. Use Transform, Warp and zoom in very closely and align the edges  as you move down or across the file. Double check that you have not removed any areas of the art.

Inspect before you confirm the warp. After Warp flatten the image.

 

Carefully measure the piece and use Image size , interpolation off to set one of the dimensions to correct size while retaining the original resolution. Then Image Size, interpolation on, de-link the proportion brackets and change the remaining dimension to the required value. The resolution will change slightly.

 

I have copied hundreds of pieces of art this way and it seems to work for my clients. Color management is another concern and another post. We have used Betterlight Scanbacks on 4x5 and the Nikon D850, 90mm macro with considerable success.

 

Cheers

Colin Southern
Known Participant
March 4, 2024

Hi Barry,

 

Thanks for the write-up, but I think people are missing the point here (or we're starting to drift a bit off-topic). I too have shot many hundreds of pieces of art for nationally known (in my country anyway) artists. My issue isn't knowing how to shoot them (lighting, lenses, distances, moving "this" or "that" etc), my issue is just wanting to know if there's a simple tool or process to correct the resulting distortion (ie curvature along edges) that naturally occurs from panning the camera.

 

I appreciate that this distortion is all but eliminated if moving the art (which I've also done a lot of - and prefer to shifting (as opposed to panning) the camera), but as mentioned above in a couple of places, this technique also caused issues in stitching both low contrast and high frequency areas (eg soft clouds and blades of grass / stones), although the distortion is less when the art or camera is shifted, I suspect that it results in a different type of distortion; one that Photoshop algorithims struggle to cope with as well (it's almost like it's optimised for the type of lens distortion that occur from frames shot by panning the camera). It's also far more time-consuming to do.

 

Getting around these issues often meant having to put 3 hours+ into each image which no client was prepared to pay for (it literally worked out at less than minimum wage); thus I developed a set of techniques that digitized the art to commercial reproduction standard - in a time efficient manner - but to date I've never been able to simplify the process of nulling out the curvature of the edges; the distortion tool in ACR or Ps Filter-> Lens Correction can get horizontal or vertical edges perfect, but not both because they require different amounts of correction and can't be constrained to just one or the other. That's really the only issue that I need to solve more efficiently; a warp transform gets the job done, but it's not as precise as what I think a slider-based adjustment tool could achieve - thus I really just wanted to know if there either was one or way of using an existing one. All the various techniques to eliminate that particular distortion in the first place are just too time consuming to execute and introduce their own quirks that take even more time to address.

 

 

Inspiring
March 5, 2024

Understood.

 

I don't think that there is any way to accurately correct distortion from panning the camera to capture multiple pieces. The distortion introduced is not calcuable in Photoshop except to "square" the pieces using Perpective crop first. Lens correction algorithyms are created using a "straight-on" chart.

 

All Photoshop pano-merges create slight movement of the pixels to accomodate the stictching. My clients have never been able to see that rearrangement. So even using my previous method there is not exact pixel to pixel accuracy in their placement. Photogrammetry is probably the only way to more accurately place the pixels. Using PTGui and photogrammetry would get you closer. However, that implies not panning the camera.

 

You might consider joining the Imagemuse mail list as many museum imaging professionals discuss such concepts, ideas and solutions.

Legend
March 4, 2024

Get a shift lens. This will make multiple shots work MUCH better without a lot of disortion.

Colin Southern
Known Participant
March 4, 2024

I already have one. It's great when shooting a 2:3 aspect ratio image in 2 or 3 overlapping frames, but it doesn't have anywhere close to having enough shift for art that's closer to a 4:1 aspect ratio.

 

Also, the manual focus was a "PITA"; focusing was problematic when trying to get focus confirmation in soft areas devoid of contrast -- and one of the reasons I had to do everything 3 times just to be sure I didn't discover a soft frame in processing after the art had been packed, sent, and was 1/2 way across the country with a carrier.

 

AutoFocus is MUCH faster and more accurate.

didiermazier
Community Expert
Community Expert
March 4, 2024

Maybe I did not understand but…

Why not apply distinct CR filters to a smart object?

Each one with its transformation settings, one for vertical, the another one for HRZ and so on…

 

Colin Southern
Known Participant
March 4, 2024

I just worked through this. It certainly fed "nicer" images into the alignment process resulting in markedly less distortion to be corrected with ACR distortion tool + a warp transform, but although the distortion was less, it still had to be corrected anyway (just with smaller numbers and adjustments) but when it had been corrected it yielded much the same final result ("good" but not "great") - and of course took a lot more time.

 

Usually I end up with something like the attached - that I'm trying to turn into an image with straight and parallel lines.

D Fosse
Community Expert
Community Expert
March 4, 2024

Merge them first, before attempting any geometry correction. Lens correction should be on, but not any geometry correction in ACR.

 

Don't use Photomerge. You need more control, so split it up into its individual components: Stack > Auto-Align > Auto-Blend. Stacking order is your friend: the bottom layer is the reference that the other layers align to. Put a center frame at the bottom, work outwards in V-fashion.

 

Choice of lens plays a big part. Use the longest lens you can given the shooting space you have available. Pick a lens with minimal distortion to begin with - no zooms. My own go-tos for this are Zeiss 50/2 and Sony 90/2.8 Macro, both of which have absolutely zero geometric distortion, even uncorrected.

 

For a flat surface without too much structure, "sliding" the camera usually works well, but make sure you have plenty overlap. Any problems will be near the corners and sides. Don't skimp here. Set Auto-Blend to "panorama", not "stack" (important).

 

Here's a trick that is sometimes useful: Take one wide angle shot that covers the full work. You won't use this in the final composite, but, upsampled, it can be useful as a base reference layer for Auto-Align. This layer is just discarded when it has done its job.

 

When you have your final composite, you can do geometry correction, with guides or grid or whatever you prefer. It should be fairly straightforward at this point. I use Transform > Distort to move the corner points inwards. Warp should not be necessary. If you need to warp, you're already in trouble.

 

 

Colin Southern
Known Participant
March 4, 2024

Thanks for the reply. Comments in-line.

 

"Merge them first, before attempting any geometry correction. Lens correction should be on, but not any geometry correction in ACR."

 

This is what I've been doing. It's not possible to use ACR to fix any issues beforehand (using the Geometry -> Upright -> Guided tool) because there isn't 2 vertical references in any of the photos.

 

"Don't use Photomerge. You need more control, so split it up into its individual components: Stack > Auto-Align > Auto-Blend. Stacking order is your friend: the bottom layer is the reference that the other layers align to. Put a center frame at the bottom, work outwards in V-fashion."

 

I just tried this, but got pretty much the same result as I did when using Photomerge; just a lot more steps.

 

"Choice of lens plays a big part. Use the longest lens you can given the shooting space you have available. Pick a lens with minimal distortion to begin with - no zooms. My own go-tos for this are Zeiss 50/2 and Sony 90/2.8 Macro, both of which have absolutely zero geometric distortion, even uncorrected."

 

I think you may be misunderstanding the problem (apologies if I didn't explain it well enough). The issue isn't lens distortion (on this occation I was using a EF70-200mm F2.8L USM II lens @ 180mm but I get exactly the same issue with a TS-E 90 F4); the issue is that the lens to subject distance is greater at the left and right edges than it is to the center of the image. If the art was curved so that the distance from the lens to the art was constant everything would be fine, but alas that's not the case. The issue is readily apparant through the viewfinder as I pan the camera to ensure correct composition (level tripod etc).

 

"For a flat surface without too much structure, "sliding" the camera usually works well, but make sure you have plenty overlap. Any problems will be near the corners and sides. Don't skimp here. Set Auto-Blend to "panorama", not "stack" (important)."

 

I've done this in the past. It eliminated the issue with the concave upper and lower edges, but created additional problems. Often Photoshop had issues merging the images; presumably because various distortions moved things too much, and it was very time consuming.

 

"Here's a trick that is sometimes useful: Take one wide angle shot that covers the full work. You won't use this in the final composite, but, upsampled, it can be useful as a base reference layer for Auto-Align. This layer is just discarded when it has done its job."

 

I can't see this making any difference; the issue is trying to correct for the inherant distortion that comes from trying to map a 3 dimensional object onto a 2 dimensional sensor. What I would really like is a tool that worked a bit like the canvas size tool in that it would give me the ability to "anchor" one edge and then move a distortion tool that only affected the opposing edge. Even a distortion tool that treated vertical edges separately from horizontal edges would get me 90% of the way there. Heck, if would be great to have a tool where we just told it where the 4 corners were and it squared up the edges from there would be fantastic; I can't be the only one with this problem.

 

Cheers,

 

D Fosse
Community Expert
Community Expert
March 4, 2024

I disagree; whilst it may be perfectly valid for what you're creating, my circumstances are different to yours; this I know because I've done it both ways. The way you're suggesting is unviable for me because it's uneconomic.

 


All right, that sounded a little more categorical and a little harsher than I intended. Sorry about that. But I stand by the gist of it. This isn't as simple as it may seem and manual input is needed throughout. Automatic procedures won't work. Or it may work, but give suboptimal results.

 

I can normally do this in less than an hour. It's not like you need to spend a whole workday.