Re: Any GIMP users (Linux)



davem@xxxxxxxxx (Dave Martindale) writes:

=?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= <mru@xxxxxxxxxxxxx> writes:
davem@xxxxxxxxx (Dave Martindale) writes:

What do you mean by "properly"? I don't think there is one absolute
best way to rescale an image, applicable to all images. (And I've
written some of my own interpolation software).

I mean without introducing aliasing artifacts when downscaling.

From what I can see, Photoshop *does* do low-pass filtering when
downsampling. (This basically amounts to increasing the size of the filter
kernel proportional to the reduction factor. So bicubic upsampling
always uses a 4x4 kernel no matter what the upsampling factor, but 2X
downsampling needs an 8x8 kernel, 3X downsampling needs 12x12, etc).

Of course, a cubic spline doesn't have a very sharp transition between
pass and cut, and some higher-frequency information that should get
removed might end up aliased in the result, but considerably attenuated.
That's likely to be true of any resampling kernel that is 4x4 in size.

If you want a more abrupt lowpass cutoff, you need to change to a more
expensive filter like Lanczos. But that has its problems too - sharp
edges can produce ringing artifacts.

What downsampling filter does ImageMagick use?

According to the docs, ImageMagick lets you choose from these:

Point
Box
Triangle
Hermite
Hanning
Hamming
Blackman
Gaussian
Quadratic
Cubic
Catrom
Mitchell
Lanczos
Bessel
Sinc

--
Måns Rullgård
mru@xxxxxxxxxxxxx
.



Relevant Pages

  • Re: why we want to do folding while performing convolution
    ... only be done for kernels of an odd size ... ... Let's say you have a first order difference filter (two ... shift theorem tells you how much to shift to eliminate the linear phase ... The indices themselves are shifts and the entire kernel can be ...
    (comp.dsp)
  • Re: Packets from bottom of TCP/IP stack direct to application bypassing stack
    ... >> your own filter modules. ... > either of the pcap but since it is a lib and not part of the kernel I feel ... The netfilter part of the kernel is designed to do exactly what you want. ... character device and readout the packets which meet your requirements. ...
    (comp.os.linux.embedded)
  • Re: DirectKS and DirectX
    ... I've never been entirely clear on the separation between kernel and user ... mode devices. ... "Iain" wrote in message ... Connecting a source filter ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices
    ... or set to a kernel default. ... | modify a filter via proc, sysfs, or ioctl. ... | appropriate permissions can be started, ... with fifos command and status. ...
    (Linux-Kernel)