|
|
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 |
|