|
ddt
0.1
|
#include <list>#include <vector>#include <cpl.h>Go to the source code of this file.
Classes | |
| struct | CplStatistics |
Typedefs | |
| typedef struct CplStatistics | CplStatistics |
Functions | |
| double | MaxPixelCplImage (const cpl_image *image) |
| double | MaxPixelCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| double | MinPixelCplImage (const cpl_image *image) |
| double | MinPixelCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| double | MeanPixelCplImage (const cpl_image *image) |
| double | MeanPixelCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| double | RmsValueCplImage (const cpl_image *image) |
| double | RmsValueCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| cpl_stats * | StatsCplImage (const cpl_image *image) |
| cpl_stats * | StatsCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| double | RmsValueCplStats (const cpl_stats *stats_cpl) |
| CplStatistics * | StatisticsCplImage (const cpl_image *image) |
| CplStatistics * | StatisticsCplImageWindow (const cpl_image *image, int llx, int lly, int urx, int ury) |
| CplStatistics * | StatisticsCplStats (const cpl_stats *stats_cpl) |
| bool | FwhmValuesCplImage (cpl_image *image, int x_pos, int y_pos, double *fwhm_x, double *fwhm_y) |
| cpl_apertures * | AperturesCplImage (const cpl_image *image, double sigma) |
| bool | AperturesCplImageDump (const char *file_name, cpl_apertures *apertures) |
| bool | MinMaxPixelsCplImage (const cpl_image *image, double *min, double *max) |
| bool | MedianMinMaxPixelsCplImage (const cpl_image *image, double *min, double *max, double kernel_size=5) |
| double | PixelValueCplImage (cpl_image *image, int x_pos, int y_pos, int *is_rejected) |
| void | GetHistogram (const cpl_image *image, const int min_value, const int max_value, std::vector< int > &distribution) |
| void | GetHistogramBins (const cpl_image *image, const int min_value, const int max_value, std::vector< int > &distribution) |
| void | GetCutValuesPercentage (const cpl_image *image, const double percentage, double *min_value, double *max_value) |
| typedef struct CplStatistics CplStatistics |
This file is part of the DDT Image Handling Library and provides functions to analyse and calculate statistic values for CPL images.
The usage is as follows:
#include "ddt/imageStats.hpp" ... using namespace ddt; Structure to bundle the main statistic values
| cpl_apertures* AperturesCplImage | ( | const cpl_image * | image, |
| double | sigma | ||
| ) |
Detect apertures in a CPL image.
| image | CPL image object |
| sigma | detection level |
| bool AperturesCplImageDump | ( | const char * | file_name, |
| cpl_apertures * | apertures | ||
| ) |
Dump list of apertures from a CPL image into a file.
| file_name | Filename of the output file |
| apertures | list of apertures |
| bool FwhmValuesCplImage | ( | cpl_image * | image, |
| int | x_pos, | ||
| int | y_pos, | ||
| double * | fwhm_x, | ||
| double * | fwhm_y | ||
| ) |
Compute FWHM (full width half maximum) values in x and y direction.
| image | CPL image object |
| x_pos | the x position |
| y_pos | the y position |
| fwhm_x | the computed FWHM value in x (-1 on error) |
| fwhm_y | the computed FWHM value in y (-1 on error) |
| void GetCutValuesPercentage | ( | const cpl_image * | image, |
| const double | percentage, | ||
| double * | min_value, | ||
| double * | max_value | ||
| ) |
Get the min/max values from a CPL image, given a percentage of pixel that fall inside this range
| image | CPL image object |
| percentage | the percentage of pixel values to fall inside the min/max range |
| min_value | the resulting minimum pixel value |
| max_value | the resulting maximum pixel value |
| void GetHistogram | ( | const cpl_image * | image, |
| const int | min_value, | ||
| const int | max_value, | ||
| std::vector< int > & | distribution | ||
| ) |
Get the histogram (pixel value distribution) for a CPL image
| image | CPL image object |
| min_value | the minimum pixel value to consider for the histogram |
| max_value | the maximum pixel value to consider for the histogram |
| distribution | vector containing the pixel value distribution |
| void GetHistogramBins | ( | const cpl_image * | image, |
| const int | min_value, | ||
| const int | max_value, | ||
| std::vector< int > & | distribution | ||
| ) |
Get the histogram (pixel value distribution) for a CPL image. The distribution vector is reshaped into bins. The bin size and count are calculated automatically.
| image | CPL image object |
| min_value | the minimum pixel value to consider for the histogram |
| max_value | the maximum pixel value to consider for the histogram |
| distribution | vector containing the pixel value distribution |
| double MaxPixelCplImage | ( | const cpl_image * | image | ) |
Calculate maximum pixel value of a CPL image.
| image | CPL image object |
This file is part of the DDT Image Handling Library and provides functions to analyse and calculate statistic values for CPL images.
The usage is as follows:
#include "ddt/imageStats.hpp" ... using namespace ddt; Calculate maximum pixel value of a CPL image.
| image | CPL image object |
| double MaxPixelCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Calculate maximum pixel value of a CPL image sub-window.
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
| double MeanPixelCplImage | ( | const cpl_image * | image | ) |
Calculate mean pixel value of a CPL image.
| image | CPL image object |
| double MeanPixelCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Calculate mean pixel value of a CPL image sub-window.
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
| bool MedianMinMaxPixelsCplImage | ( | const cpl_image * | image, |
| double * | min, | ||
| double * | max, | ||
| double | kernel_size | ||
| ) |
Get min / max values from a median filtered CPL image.
| image | CPL image object |
| min | the minimum pixel value, or -1.0 on error |
| max | the maximum pixel value, or -1.0 on error |
| kernel_size | size of filtering kernel; e.g. a value of 5 results in a 5x5 kernel matrix; defaults to 5 |
| bool MinMaxPixelsCplImage | ( | const cpl_image * | image, |
| double * | min, | ||
| double * | max | ||
| ) |
Get min / max values from a CPL image.
| image | CPL image object |
| min | the minimum pixel value |
| max | the maximum pixel value |
Get min / max values from a CPL image.
| image | CPL image object |
| min | the minimum pixel value, or -1.0 on error |
| max | the maximum pixel value, or -1.0 on error |
| double MinPixelCplImage | ( | const cpl_image * | image | ) |
Calculate minimum pixel value of an CPL image.
| image | CPL image object |
| double MinPixelCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Calculate minimum pixel value of a CPL image sub-window.
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
| double PixelValueCplImage | ( | cpl_image * | image, |
| int | x_pos, | ||
| int | y_pos, | ||
| int * | is_rejected | ||
| ) |
Get the pixel value at a certain image position
| image | CPL image object |
| x_pos | the pixel x position |
| y_pos | the pixel y position |
| is_rejected | set to 1 if the pixel is bad, 0 if good, or -1 on error |
| double RmsValueCplImage | ( | const cpl_image * | image | ) |
Calculate RMS (root mean square) value of a CPL image.
| image | CPL image object |
Calculate RMS (root mean square) value of a CPL image.
| image | CPL image object |
| double RmsValueCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Calculate RMS (root mean square) value of a CPL image sub-window.
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
Calculate RMS (root mean square) value of a CPL image sub-window.
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
| double RmsValueCplStats | ( | const cpl_stats * | stats_cpl | ) |
Calculate RMS (root mean square) value from statistic values contained in a cpl_stats object.
| stats_cpl | cpl_stats object |
| CplStatistics* StatisticsCplImage | ( | const cpl_image * | image | ) |
Get statistics from CPL image
| image | CPL image object |
| CplStatistics* StatisticsCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Get statistics from CPL image sub-window
| image | CPL image object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |
| CplStatistics* StatisticsCplStats | ( | const cpl_stats * | stats_cpl | ) |
Get statistics from statistic values contained in a cpl_stats object.
| stats_cpl | cpl_stats object |
| cpl_stats* StatsCplImage | ( | const cpl_image * | image | ) |
Get statistics from CPL image
| image | CPL image object |
| cpl_stats* StatsCplImageWindow | ( | const cpl_image * | image, |
| int | llx, | ||
| int | lly, | ||
| int | urx, | ||
| int | ury | ||
| ) |
Get statistics from CPL image sub-window
| image | CPL image sub-window object |
| llx | lower left x position (1: leftmost) |
| lly | lower left y position (1: lowest) |
| urx | upper right x position |
| ury | upper right y position |