Using ImageJ to distort or skew an image.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using ImageJ to distort or skew an image.

Blue
I have a collection of several thousand images that I need to process, but we've realised that the camera wasn't aligned properly. I'm wondering if I can use ImageJ (or Fiji) and a macro to fix each image. Below is an example of what I want to do. Basically, by artificially skewing the image in the other "direction", we can "fix" the problem of the camera being off-centre when the image was taken.

Skew

I've been searching around online and here for an answer, but most solutions seem to be about fixing distortion due to the lens, which I think would be the fisheye effect. I've tried playing with ImageJ and reading the documentation, but I haven't figured it out that way, either. Apologies if this has been solved before.

Thanks!
Remember Wheaton's Law
Reply | Threaded
Open this post in threaded view
|

Re: Using ImageJ to distort or skew an image.

Michael Schmid
Hi blue anonymous,

for correcting perspective, you need an affine transformation. E.g.
  http://www.imagescience.org/meijering/software/transformj/affine/
  http://imagej.net/Interactive_Affine
  http://ij.ms3d.de/plugins/affine_mapping.php
  http://www.med.harvard.edu/JPNM/ij/plugins/Align3TPmanual/Align3TPmanual.html
  http://imagej.nih.gov/ij/plugins/untilt-stack/index.html
  http://biocomp.cnb.csic.es/~iarganda/bUnwarpJ/

Michael
________________________________________________________________
On Apr 1, 2015, at 04:48, Blue wrote:

> I have a collection of several thousand images that I need to process, but
> we've realised that the camera wasn't aligned properly. I'm wondering if I
> can use ImageJ (or Fiji) and a macro to fix each image. Below is an example
> of what I want to do. Basically, by artificially skewing the image in the
> other "direction", we can "fix" the problem of the camera being off-centre
> when the image was taken.
>
> <http://imagej.1557.x6.nabble.com/file/n5012282/Untitled_zpshutsmag0.png>
>
> I've been searching around online and here for an answer, but most solutions
> seem to be about fixing distortion due to the lens, which I think would be
> the fisheye effect. I've tried playing with ImageJ and reading the
> documentation, but I haven't figured it out that way, either. Apologies if
> this has been solved before.
>
> Thanks!

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Using ImageJ to distort or skew an image.

Blue
Ah, thanks for that. I did wonder if I had the correct terminology.

I'll make my way through the links and see if anything works. Thanks again!
Remember Wheaton's Law