morphol.h File Reference

<mi32/morphol.h> used by morphology function, internal to program More...

#include <mi32/stddefns.h>

Include dependency graph for morphol.h:

Include dependency graph

Go to the source code of this file.

Classes

struct  MORPHSTRUCT

Defines

#define COMPLIMENT   4
#define COPY   7
#define DILATION   1
#define EROSION   2
#define INTERSECTION   5
#define MI_DIFFERENCE   3
#define MORPHTEST   6

Functions

int MfMorphology (const FILEPATH &infilenpath, INT32 inInode, const FILEPATH &outfilepath, INT32 outInode, DOUBLE **structElement, int rows, int cols, DOUBLE upperThreshold, DOUBLE lowerThreshold, int statusLine, int morphType)


Detailed Description

<mi32/morphol.h> used by morphology function, internal to program

Definition in file morphol.h.


Define Documentation

#define COMPLIMENT   4
 

Definition at line 107 of file morphol.h.

#define COPY   7
 

Definition at line 110 of file morphol.h.

#define DILATION   1
 

Definition at line 104 of file morphol.h.

#define EROSION   2
 

Definition at line 105 of file morphol.h.

#define INTERSECTION   5
 

Definition at line 108 of file morphol.h.

#define MI_DIFFERENCE   3
 

Definition at line 106 of file morphol.h.

#define MORPHTEST   6
 

Definition at line 109 of file morphol.h.


Function Documentation

int MfMorphology const FILEPATH infilenpath,
INT32  inInode,
const FILEPATH outfilepath,
INT32  outInode,
DOUBLE **  structElement,
int  rows,
int  cols,
DOUBLE  upperThreshold,
DOUBLE  lowerThreshold,
int  statusLine,
int  morphType
 

Apply morphological functions to binary or grey-scale rasters.

Returns:
0, error code, or a 1 in the case of a succesfull MORPHTEST.
This function is best suited for use on binary rasters but will work for grey-scale. Because of the "Fuzzy logical nature" of INTERSECTION as applied to grey-scale rasters, that type is not implimented for grey-scale but will work for binary. When using the MORPHTEST type, the upper and lower thresholds must be set. A threshold of zero will imply that the rasters have to be exact, which may not be practical when using grey-scale.

infilenpath source filename inInode source inode outfilepath destination filname outInode destination inode structElement structural element to be applied to source rows size of structural element cols size of structural element upperThreshold upper threshold used for grey-scale applications lowerThreshold lower threshold used for grey-scale applications statusLine line on the status widget morphType

  • DILATION dilate the source and place result in destination
  • EROSION erode source and place result in destination
  • DIFFERENCE find the difference of source and destination and place result in destination
  • COMPLIMENT find the compliment of source and place in destination
  • INTERSECTION find the intersection of source and desination and place result in destination
  • MORPHTEST test if source and destination are identical, set upper and lower thresholds when using grey-scale, will return a 1 if success
  • COPY copy from source to destination
Parameters:
infilenpath  source filename
inInode  source inode
outfilepath  destination filname
outInode  destination inode
structElement  structural element to be applied to source
rows  size of structural element
cols  size of structural element
upperThreshold  upper threshold used for grey-scale applications
lowerThreshold  lower threshold used for grey-scale applications
statusLine  line on the status widget
morphType  type of morphological function to run


Generated on Tue Dec 14 13:19:08 2004 for TNTsdk by  doxygen 1.3.8-20040913