Image distortion, specified by a formula, is there a plugin? [SEC=UNCLASSIFIED]

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

Image distortion, specified by a formula, is there a plugin? [SEC=UNCLASSIFIED]

Goldsmith, Noel
Hi,
I have spent some time searching for an anamorphic plug-in which allows the
user to distort an image in a particular way. By anamorphic I mean the
plug-in produces distortion in one direction but not at right angles. A
simple distortion is to expand the image by scaling one direction only. I
want to change the rate of this scaling according to some simple function/s
as a function of the position.

The distortion I require is one which magnifies the image along the X (or Y)
direction with a user defined function.

So if there are any plug-ins or plug-in which may be modified out there
which already do it and I missed on seeing it  I would appreciate learning
of this. And if anyone is willing to offer advice about starting such a
plug-in I would be grateful.
Thank you
Noel.
Noel Goldsmith
Air Vehicles Division
DSTO
506 Lorimer Street
Port Melbourne
3207 Victoria
AUSTRALIA
613 96267527
0428364003
[hidden email]
--



IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.

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

Re: Image distortion, specified by a formula, is there a plugin? [SEC=UNCLASSIFIED]

Rasband, Wayne (NIH/NIMH) [E]
On Sep 12, 2012, at 8:32 PM, Goldsmith, Noel wrote:

> Hi,
> I have spent some time searching for an anamorphic plug-in which allows the
> user to distort an image in a particular way. By anamorphic I mean the
> plug-in produces distortion in one direction but not at right angles. A
> simple distortion is to expand the image by scaling one direction only. I
> want to change the rate of this scaling according to some simple function/s
> as a function of the position.
>
> The distortion I require is one which magnifies the image along the X (or Y)
> direction with a user defined function.
>
> So if there are any plug-ins or plug-in which may be modified out there
> which already do it and I missed on seeing it  I would appreciate learning
> of this. And if anyone is willing to offer advice about starting such a
> plug-in I would be grateful.

You can easily do this using the Process>Math>Macro command. For example, enter "v=getPixel(x/2,y)" to magnify the image by 2 in the x direction.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html