FocusMeasure class.
Macros:
Enumerations:
None.
Typedefs:
None.
Struct CapyFocusMeasure :
Struct CapyFocusMeasure's properties:
ROI (default (0,0)-(100000,100000), inclusive)
Struct CapyFocusMeasure's methods:
Destructor
Get the focus measure of a greyscale image (Laplacian variance method)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (Tenengrad method)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (Brenner method, 2D version)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (symmetric Vollath F4)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (variance)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (normalized variance)
Input argument(s):
img: the image
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus
Get the focus measure of a greyscale image (DFT Shannon entropy) The current implementation is probably incorrect!
Input argument(s):
img: the image
r: the low-pass filtering radius (in [0,+inf])
Output and side effect(s):
Return the focus measure, the higher it is the more probable it is that the image is in focus. The lower the filtering radius the more noise is removed but the more information is also lost. The ROI must have power-of-2 dimensions.
Functions:
Create a CapyFocusMeasure
Output and side effect(s):
Return a CapyFocusMeasure
Allocate memory for a new CapyFocusMeasure and create it
Output and side effect(s):
Return a CapyFocusMeasure
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyFocusMeasure* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyFocusMeasure to free