public class LunarMaskCreator
extends java.lang.Object
| Constructor and Description |
|---|
LunarMaskCreator(int width,
int height)
Class constructor, for an image of the specified dimensions
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
CreateLunarMask(int[] frameBuffer,
double sigma,
double highThres,
double lowThres,
double thickness)
Creates a mask of the lunar surface via the following steps:
1) detects the limb of the Moon using edge detection, thresholding and hysteresis
2) fits a circle to the detected edge pixels
3) defines the lunar surface by including the points in the circle
|
public LunarMaskCreator(int width,
int height)
width - the width of the imageheight - the height of the imagepublic int[] CreateLunarMask(int[] frameBuffer,
double sigma,
double highThres,
double lowThres,
double thickness)
frameBuffer - the lunar frame that will be used for the mask creationsigma - the sigma for the edge detection filtershighThres - the high threshold for gradient magnitudelowThres - the low threshold for the low gradientthickness - the thickness of the detected arc, which is related to the closeness of the mask to the limb of the Moon