casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::LatticeUtilities_global_functions_LatticeUtilities Struct Reference

Global functions on Lattices. More...

#include <LatticeUtilities.h>

List of all members.

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.

Detailed Description

Global functions on Lattices.

Intended use:

Public interface

Review Status

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

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 170 of file LatticeUtilities.h.


Member Function Documentation

template<class T >
void casa::LatticeUtilities_global_functions_LatticeUtilities::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: