Documentation
¶
Index ¶
- Constants
- func ImageToGray(m image.Image) *image.Gray16
- type FourierImage
- func (f FourierImage) AmplitudeImage() *Image
- func (f FourierImage) ApplyImageMask(img *Image) (*FourierImage, error)
- func (f FourierImage) ApplyMatrixMask(mask *dsputils.Matrix) (*FourierImage, error)
- func (f FourierImage) BrighterAmplitudeImage() *Image
- func (f FourierImage) IDFTImage() *Image
- func (f FourierImage) PhaseImage() *Image
- type Image
Constants ¶
View Source
const ( Real = iota RealFromDFT Amplitude BrighterAmplitude Phase )
View Source
const MaxUint = math.MaxUint16
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FourierImage ¶
type FourierImage struct {
*dsputils.Matrix // Is expected to be the result of a Fourier transform
}
func (FourierImage) ApplyImageMask ¶
func (f FourierImage) ApplyImageMask(img *Image) (*FourierImage, error)
Generate a new FourierImage by applying a mask to the current one The mask is assumed to have its frequency origin at the center, which is shifted by N/2 and M/2 from the top left origin
func (FourierImage) ApplyMatrixMask ¶
func (f FourierImage) ApplyMatrixMask(mask *dsputils.Matrix) (*FourierImage, error)
ApplyMatrixMask applies a mask to the fourier matrix. It expects the mask to be of the same dimensions as the fourier matrix, and to contain real values ranging from [0...1]. Any imaginary component is ignored.
func (FourierImage) BrighterAmplitudeImage ¶
func (f FourierImage) BrighterAmplitudeImage() *Image
For making masks
type Image ¶
func (Image) DFT ¶
func (m Image) DFT() FourierImage
func (Image) ToGrayMatrix ¶
Work with gray for now Returns a matrix without rescaling values
Click to show internal directories.
Click to hide internal directories.