🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.image.processing
Article #425

Re: 2d dft phase info

#425
From: Thomas M. Breuel
Date: Mon, 07 Sep 1992 19:34
55 lines
3255 bytes
In article <1992Sep7.110102.25536@bnr.co.uk> pgh@bnr.co.uk (Peter Hamer) writes:

   In the referenced article spz@specklec.mpifr-bonn.mpg.de (S.P.Zeidler) writes:
   >In <9209011949.AA19843@hp-and.an.hp.com> susanm@hp-and.an.hp.com (Susan Margulies) writes:
   >One thing that you might want to take into account is that the Fourier
   >transform of an ordinary image is hermitic, ie if you do a transform
   >AxB real image -> AxB complex Fourier transform, you got quite some
   >redundancies.

To be precise, half of your transform is redundant. If you pack things
carefully, you can even transform an N x M real array into an N/2 x M
complex array. If you are less aggressive in packing and waste a
little space, you can trivially get an (N+2)/2 x (M+2) complex output
array for your N x M real input.

   Serious question: so why not use the Hartley transform which does not
   introduce these redundancies in the first place?

I have tried both. It's relatively easy not to generate the half of
the Fourier transform that you don't need, and the result is the
familar and easy to use complex representation. It's messy and error
prone trying to rewrite the simple formulas (e.g., for filtering) in
the Fourier domain for the Hartley transform, and, as far as I can
tell, the result isn't any faster (if anything, it's likely to be
slower because you need more array indexing).

   >Doing instead AxB image -> -(A/2+1)xB phase and (A/2+1)xB modulus
   >will give you a nicely viewable (and displayable) Fourier transform.

   ... or use your favourite Fourier package and display the Hartley transform?

If you look at the Hartley transform of an image, you are looking at
both phase and magnitude information, interwoven in some visually
complicated way. The nice thing about the Fourier transform is the
separation into phase and magnitude.

   Regards, Peter

   PS The Hartley transform can be regarded as a `tidier' Fourier transform.

      a) Uses cos(x)+sin(x) rather than cos(x)+i*sin(x).
      b) The inverse is the same operation as the transform.
      c) Takes real => real.
      d) Does not introduce redundancies into the representation.
      e) Even clearer relationship to the sine and cosine transforms.

It looks neat on paper, but I don't think it's tidier in practice.

      d) Easy to convert between Hartley and Fourier transforms.

If you are going to compute the FHT and then reconstitute Fourier
coefficients (or phase/magnitude information) from the result, you are
probably better off using the Fourier transform in the first place.

					Thomas.
Technical Details
Message-ID: <TMB.92Sep7153447@arolla.idiap.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
References: <9209011949.AA19843@hp-and.an.hp.com> <1992Sep2.194306.2275@mpifr-bonn.mpg.de> <1992Sep7.110102.25536@bnr.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
From: tmb@arolla.idiap.ch (Thomas M. Breuel)
Newsgroups: sci.image.processing
Subject: Re: 2d dft phase info
Message-ID: <TMB.92Sep7153447@arolla.idiap.ch>
Date: 7 Sep 92 19:34:47 GMT
References: <9209011949.AA19843@hp-and.an.hp.com> <1992Sep2.194306.2275@mpifr-bonn.mpg.de>
 <1992Sep7.110102.25536@bnr.co.uk>
Sender: news@ai.mit.edu
Reply-To: tmb@idiap.ch
Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
 Perceptive)
Lines: 55
In-reply-to: pgh@bnr.co.uk's message of 7 Sep 92 11:01:02 GMT