Home | About | Partners | Contact Us
VA Linux Systems


please look at http://gimp-plug-ins.sourceforge.net/ for a dedicated gimp plugin repository



Scale

Compile it for Linux:

Checkout as explained here.
Then:

cd fourier
make scale


How to get a scale binary for windows:

Download  a compiled binary here: scale.zip

Example how to use scale:

This picture is 30x30 size. Now scale it up using scale.

Eingabedatei 30x30 Punkte

Scaled up using this command:

scale -i  scaled30x30.tif -x 100 -y 100

Result (always written to out.tif):

Scaled up to 100x100

Scaled down again to 30x30:

rescaled to 30x30

The point is that scaling up in the frequency domain means extending using zeros in the high frequency parts. If you scale such image down later you just remove the parts that you added before. The picture is exactly the same as before scaling up and down. The process of  scaling up and down is completely reversible. Other processes of image scaling always loose information if you scale up not to multiples of the original size.
However this implementation is not smart enough to keep the relative differences of the colors while doing this.  This could easily be added for anybody who cares.

The Sourcecode for the program is here .

It can be accessed via cvs as it is explained here.

The project sourceforge page is here.

Another example:

char O in 10x10

scaled up to 100x100:

char O scaled up to 100x100

downscaled back to 10x10:

O again in 10x10



Gimp Plugin "fourier"


lena input Input Image, Gray with alphachannel

lenakanten Same image with low frequencies deleted, similar effect like edge detection.

lenaunscharf This image shows an effect similar to unsharpen by removing some high frequency parts.

lenainputunscharfx this is the input image for lenaunscharfx that output.

You see in this example how the vertical resolution remains while the horizontal (x-direction) got lost.


Links:

gfourier

another fourier plugin for gimp

download

Plugin registry




All trademarks and copyrights on this page are properties of their respective owners. Forum comments are owned by the poster. The rest is copyright ©1999-2000 VA Linux Systems, Inc.