Using Distortion Lookup Maps
Posted: 2013-09-04T10:36:29-07:00
Hi,
I'm trying to use a a distortion lookup map (LUT) to apply complex transformation to an image. The idea is to apply the transformations to LUT in photoshop so I can process hundreds of images the same way.
But I'm having problems with higher-than-poststamp resolutions, here's my LUT (no transformation, 16bit PNG) :
Here's my input image:
Command (from manual) and output:
As you can see even though I used 16bit channels which should be enough for this resolution the edges on the result are jagged. It seems like interpolation problem.
Is this is my LUT's fault (created in Photoshop, I don't know how to check how precise the gradient is) or is it caused by ImageMagick?
Do you have any large 1-1 LUT I could you? Or even better, could you help me generate one with image magick?
thanks in advance!
ian
I'm trying to use a a distortion lookup map (LUT) to apply complex transformation to an image. The idea is to apply the transformations to LUT in photoshop so I can process hundreds of images the same way.
But I'm having problems with higher-than-poststamp resolutions, here's my LUT (no transformation, 16bit PNG) :
Here's my input image:
Command (from manual) and output:
Code: Select all
convert input.png -matte lut.png \
\( -clone 0,1 -fx 'p{v.r*w,v.g*h}' \
+clone -compose Dst_In -composite \) -delete 0,1 \
result.png
As you can see even though I used 16bit channels which should be enough for this resolution the edges on the result are jagged. It seems like interpolation problem.
Is this is my LUT's fault (created in Photoshop, I don't know how to check how precise the gradient is) or is it caused by ImageMagick?
Do you have any large 1-1 LUT I could you? Or even better, could you help me generate one with image magick?
thanks in advance!
ian