Login  Register

Re: De-skew distorted image

Posted by nan0guy on Apr 20, 2011; 5:10pm
URL: http://imagej.273.s1.nabble.com/De-skew-distorted-image-tp3684884p3684886.html

Michael Schmid-3 wrote
Hi Lloyd,

I have an experimental plugin for shearing; I'll paste it below. It  
may still have bugs, but usually it works well.
You will also need to adjust the y/x scale ratio by  
Image>Adjust>Size. Remember to set the pixel aspect ratio to 1 after  
this step.

Michael
________________________________________________________________

{Michael's plugin trimmed}
Michael,

This did exactly what I needed it to do, and worked perfectly (once I accounted for cutting and pasting artifacts at end-of-line).  I am still receiving two warnings related to ic.setDisplayList (pasted below), but they do not stop the plugin from functioning.  Is there anything I can do/should do to remove them?

Thanks so much for the help, and the well-written and commented plugin.

Lloyd

Warnings:
C:\Program Files (x86)\ImageJ\plugins\Image Processing\Shear_x.java:172: warning: [deprecation] setDisplayList(java.util.Vector) in ij.gui.ImageCanvas has been deprecated
         if (spacing < 2) {ic.setDisplayList(null); return;}
                             ^
C:\Program Files (x86)\ImageJ\plugins\Image Processing\Shear_x.java:189: warning: [deprecation] setDisplayList(java.awt.Shape,java.awt.Color,java.awt.BasicStroke) in ij.gui.ImageCanvas has been deprecated
         ic.setDisplayList(path, null, null);