LatticeUtilities.h
Classes
- LatticeUtilities -- Static functions for Lattices (full description)
- Global Functions -- Global functions on Lattices (full description)
Interface
- void minMax(T & min, T & max, IPosition & posMin, IPosition & posMax, const IPosition<T>& lat)
Review Status
- Date Reviewed:
- yyyy/mm/dd
- Programs:
- Tests:
Prerequisite
Synopsis
Global functions using Lattices
Example
Example 1:
Copy the lattice-type data between two Images.//
PagedImage<Float> myImg ("myimagefile");
Float lmin;
Float lmax;
IPosition posMin = myImg.shape();
IPosition posMax = myImg.shape();
minMax( lmin, lmax, posMin, posMax, myImg );
Motivation
Algorithms like CLEAN need to know the position of the MIN and MAX
of an image, but easy things like LEL's min and max don't tell you
the location of the min and max. It seems there may be other global
functions involving lattices.
To Do
Member Description
void minMax(T & min, T & max, IPosition & posMin, IPosition & posMax, const IPosition<T>& lat)
This global function finds the max of a Lattice, and also
the IPositions of the max. (LEL does not get you the IPositions of the
min and max)
Interface
- void minMax(T & min, T & max, IPosition & posMin, IPosition & posMax, const IPosition<T>& lat)
Review Status
- Date Reviewed:
- yyyy/mm/dd
- Programs:
- Tests:
Prerequisite
Synopsis
Global functions using Lattices
Example
Example 1:
Copy the lattice-type data between two Images.//
PagedImage<Float> myImg ("myimagefile");
Float lmin;
Float lmax;
IPosition posMin = myImg.shape();
IPosition posMax = myImg.shape();
minMax( lmin, lmax, posMin, posMax, myImg );
Motivation
Algorithms like CLEAN need to know the position of the MIN and MAX
of an image, but easy things like LEL's min and max don't tell you
the location of the min and max. It seems there may be other global
functions involving lattices.
To Do
Member Description
void minMax(T & min, T & max, IPosition & posMin, IPosition & posMax, const IPosition<T>& lat)
This global function finds the max of a Lattice, and also
the IPositions of the max. (LEL does not get you the IPositions of the
min and max)