casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::LatticeMathUtil_global_functions_LatticeMathUtil Struct Reference

Global functions on Lattices. More...

#include <LatticeMathUtil.h>

Public Member Functions

template<class T >
void minMax (T &min, T &max, IPosition &posMin, IPosition &posMax, const Lattice< T > &lat)
 This global function finds the max of a Lattice, and also the IPositions of the max. More...
 

Detailed Description

Global functions on Lattices.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd
Test programs:
tLatticeMathUtil

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

Definition at line 137 of file LatticeMathUtil.h.

Member Function Documentation

template<class T >
void casacore::LatticeMathUtil_global_functions_LatticeMathUtil::minMax ( T &  min,
T &  max,
IPosition posMin,
IPosition posMax,
const Lattice< 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)


The documentation for this struct was generated from the following file: