|
CPPxDIC
C++ Digital Image Correlation library for fingertip 3D reconstruction
|
ImageProcessor class Provides image preprocessing operations for DIC analysis. More...
#include <image_processor.h>
Static Public Member Functions | |
| static std::vector< cv::Mat > | saturate (const std::vector< cv::Mat > &input, int level) |
| Saturate image intensities Equivalent to satur.m in Matlab. | |
| static cv::Mat | saturate (const cv::Mat &input, int level, const std::string &method="high") |
| Saturate single image. | |
| static std::pair< std::vector< cv::Mat >, std::pair< double, double > > | filterLikeBen (const std::vector< cv::Mat > &input, const cv::Mat &mask, const std::vector< int > ¶m_filt, const std::pair< double, double > *gs_boundaries=nullptr) |
| Filter images like Ben's method Equivalent to filter_like_ben.m in Matlab. | |
| static cv::Mat | applyBandpassFilter (const cv::Mat &input, const std::vector< int > ¶m_filt) |
| Apply bandpass filter to image using FFT. | |
| static std::pair< double, double > | computeGrayscaleBoundaries (const cv::Mat &image, const cv::Mat &mask) |
| Compute grayscale boundaries from masked region using min/max. | |
| static std::pair< double, double > | computePercentileBoundaries (const cv::Mat &image, const cv::Mat &mask, double lower_percentile, double upper_percentile) |
| Compute grayscale boundaries using percentiles. | |
| static cv::Mat | normalizeAndClamp (const cv::Mat &image, const std::pair< double, double > &boundaries) |
| Normalize and clamp image to [0, 255] using boundaries. | |
| static std::vector< cv::Mat > | loadImages (const std::vector< std::string > &paths, bool grayscale=true) |
| Load images from file paths. | |
| static bool | saveImages (const std::vector< cv::Mat > &images, const std::string &base_path, const std::string &prefix) |
| Save images to disk. | |
| static cv::Mat | blurOutsideMask (const cv::Mat &img, const cv::Mat &mask, int kwidth=25, int kheight=25) |
| Blur the outside of a mask. | |
ImageProcessor class Provides image preprocessing operations for DIC analysis.
Definition at line 20 of file image_processor.h.
|
static |
Apply bandpass filter to image using FFT.
| input | Input image |
| param_filt | Filtering parameters [low_freq, high_freq] |
Definition at line 89 of file image_processor.cpp.
|
static |
Blur the outside of a mask.
| img | Input image |
| mask | ROI mask |
| kwidth | Kernel width for Gaussian blur |
| kheight | Kernel height for Gaussian blur |
Definition at line 314 of file image_processor.cpp.
|
static |
Compute grayscale boundaries from masked region using min/max.
| image | Input image |
| mask | ROI mask |
Definition at line 158 of file image_processor.cpp.
|
static |
Compute grayscale boundaries using percentiles.
| image | Input image (CV_32F) |
| mask | ROI mask |
| lower_percentile | Lower percentile (e.g., 5.0 for 5th percentile) |
| upper_percentile | Upper percentile (e.g., 95.0 for 95th percentile) |
Definition at line 180 of file image_processor.cpp.
|
static |
Filter images like Ben's method Equivalent to filter_like_ben.m in Matlab.
| input | Input images (saturated) |
| mask | ROI mask |
| param_filt | Filtering parameters [low, high] |
| gs_boundaries | Optional pre-computed grayscale boundaries |
Definition at line 59 of file image_processor.cpp.
|
static |
Load images from file paths.
| paths | Vector of image file paths |
| grayscale | Load as grayscale if true |
Definition at line 253 of file image_processor.cpp.
|
static |
Normalize and clamp image to [0, 255] using boundaries.
| image | Input image (CV_32F) |
| boundaries | Grayscale boundaries [min, max] |
Definition at line 221 of file image_processor.cpp.
|
static |
Saturate single image.
| input | Input image |
| level | Grayscale limit for saturation |
| method | Saturation method ('high' or 'low') |
Definition at line 30 of file image_processor.cpp.
|
static |
Saturate image intensities Equivalent to satur.m in Matlab.
| input | Input images (vector of cv::Mat) |
| level | Grayscale limit for saturation |
Definition at line 19 of file image_processor.cpp.
|
static |
Save images to disk.
| images | Vector of images to save |
| base_path | Base directory path |
| prefix | Filename prefix |
Definition at line 270 of file image_processor.cpp.