|
Digital Image Correlation Engine
Version 1.0
A modular, high-performance, image correlation tool used to compute full-field displacements and strains from digital images
|
utilities that wont build with NVCC so they are separated out into another namespace More...
Classes | |
| class | Image_Reader_Cache |
Functions | |
| DICE_LIB_DLL_EXPORT std::string | netcdf_file_name (const char *decorated_netcdf_file) |
| DICE_LIB_DLL_EXPORT int_t | netcdf_index (const char *decorated_netcdf_file) |
| DICE_LIB_DLL_EXPORT std::string | cine_file_name (const char *decorated_cine_file) |
| DICE_LIB_DLL_EXPORT void | cine_index (const char *decorated_cine_file, int_t &start_index, int_t &end_index, bool &is_avg) |
| DICE_LIB_DLL_EXPORT Image_File_Type | image_file_type (const char *file_name) |
| DICE_LIB_DLL_EXPORT void | read_image_dimensions (const char *file_name, int_t &width, int_t &height) |
| DICE_LIB_DLL_EXPORT void | read_image (const char *file_name, intensity_t *intensities, const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null) |
| DICE_LIB_DLL_EXPORT void | spread_histogram (const int_t width, const int_t height, intensity_t *intensities) |
| DICE_LIB_DLL_EXPORT void | round_intensities (const int_t width, const int_t height, intensity_t *intensities) |
| DICE_LIB_DLL_EXPORT void | remove_outliers (const int_t width, const int_t height, intensity_t *intensities, const intensity_t &rep_value=-1.0) |
| DICE_LIB_DLL_EXPORT void | floor_intensities (const int_t width, const int_t height, intensity_t *intensities) |
| DICE_LIB_DLL_EXPORT void | undistort_intensities (const int_t width, const int_t height, intensity_t *intensities, const Teuchos::RCP< Teuchos::ParameterList > ¶ms) |
| DICE_LIB_DLL_EXPORT void | write_image (const char *file_name, const int_t width, const int_t height, intensity_t *intensities, const bool is_layout_right=true) |
| DICE_LIB_DLL_EXPORT void | write_color_overlap_image (const char *file_name, const int_t width, const int_t height, intensity_t *bottom_intensities, intensity_t *top_intensities) |
| DICE_LIB_DLL_EXPORT cv::Mat | read_image (const char *file_name) |
| DICE_LIB_DLL_EXPORT void | read_rawi_image_dimensions (const char *file_name, int_t &width, int_t &height) |
| DICE_LIB_DLL_EXPORT void | read_rawi_image (const char *file_name, intensity_t *intensities, const bool is_layout_right=true) |
| DICE_LIB_DLL_EXPORT void | write_rawi_image (const char *file_name, const int_t width, const int_t height, intensity_t *intensities, const bool is_layout_right=true) |
utilities that wont build with NVCC so they are separated out into another namespace
| DICE_LIB_DLL_EXPORT std::string DICe::utils::cine_file_name | ( | const char * | decorated_cine_file | ) |
returns the name of a file given a decorated file name string
| decorated_cine_file | the decorated string that contains the name |
| DICE_LIB_DLL_EXPORT void DICe::utils::cine_index | ( | const char * | decorated_cine_file, |
| int_t & | start_index, | ||
| int_t & | end_index, | ||
| bool & | is_avg | ||
| ) |
returns the start index decyphered from the cine file descriptor passed in
| decorated_cine_file | the descriptor that has the cine name and index concatendated |
| start_index | [out] the start index requested |
| end_index | [out] returned as -1 unless the descriptor has an "avg" tag appended |
| is_avg | true if more than one frame gets averaged together The convention is as follows cine_file_0.cine would lead to a file name of cine_file.cine and an index of 0 Another example would be cine_file_avg45to51.cine that would lead to a file name of cine_file.cine and averaging of frames 45 through 51 inclusive. negative numbers are okay e.g. cine_file_avg-12to-10.cine or cine_file_-500.cine |
| DICE_LIB_DLL_EXPORT void DICe::utils::floor_intensities | ( | const int_t | width, |
| const int_t | height, | ||
| intensity_t * | intensities | ||
| ) |
Round the image intensity values to the nearest integer value
| width | |
| height | |
| intensities |
| DICE_LIB_DLL_EXPORT Image_File_Type DICe::utils::image_file_type | ( | const char * | file_name | ) |
returns the type of file based on the name
| file_name | the name of the file |
| DICE_LIB_DLL_EXPORT std::string DICe::utils::netcdf_file_name | ( | const char * | decorated_netcdf_file | ) |
returns the name of a netcdf file given a decorated cine string
| decorated_netcdf_file_string | the decorated string that contains the name |
| DICE_LIB_DLL_EXPORT int_t DICe::utils::netcdf_index | ( | const char * | decorated_netcdf_file | ) |
returns the frame index decyphered from the netcdf file descriptor passed in
| decorated_netcdf_file | the descriptor that has the netcdf name and index concatendated |
| DICE_LIB_DLL_EXPORT cv::Mat DICe::utils::read_image | ( | const char * | file_name | ) |
Read an image into the host memory returning an opencv Mat object
| file_name | the name of the file |
| DICE_LIB_DLL_EXPORT void DICe::utils::read_image | ( | const char * | file_name, |
| intensity_t * | intensities, | ||
| const Teuchos::RCP< Teuchos::ParameterList > & | params = Teuchos::null |
||
| ) |
Read an image into the host memory
| file_name | the name of the file |
| intensities | [out] populated with the image intensities |
| params | apply special filters or select sub portions of the image |
| DICE_LIB_DLL_EXPORT void DICe::utils::read_image_dimensions | ( | const char * | file_name, |
| int_t & | width, | ||
| int_t & | height | ||
| ) |
read the image dimensions
| file_name | the name of the file |
| width | [out] returned as the width of the image |
| height | [out] returned as the height of the image |
| DICE_LIB_DLL_EXPORT void DICe::utils::read_rawi_image | ( | const char * | file_name, |
| intensity_t * | intensities, | ||
| const bool | is_layout_right = true |
||
| ) |
Read an image into the host memory
| file_name | the name of the .rawi file |
| intensities | [out] populated with the pixel intensity values |
| is_layout_right | [optional] memory layout is LayoutRight (row-major) |
| DICE_LIB_DLL_EXPORT void DICe::utils::read_rawi_image_dimensions | ( | const char * | file_name, |
| int_t & | width, | ||
| int_t & | height | ||
| ) |
Raw Intensity Format (.rawi), allows saving decimal numbers as well as negative numbers, neither of which are enabled for standard image file formats read the image dimensions
| file_name | the .rawi file name |
| width | [out] returned as the width of the image |
| height | [out] returned as the height of the image |
| DICE_LIB_DLL_EXPORT void DICe::utils::remove_outliers | ( | const int_t | width, |
| const int_t | height, | ||
| intensity_t * | intensities, | ||
| const intensity_t & | rep_value = -1.0 |
||
| ) |
Set the intensity value for outlier pixels (the ones with the highest intensity value) to the second highest value This is helpful in removing failed cine pixels
| width | |
| height | |
| intensities | |
| value | replacement value |
| DICE_LIB_DLL_EXPORT void DICe::utils::round_intensities | ( | const int_t | width, |
| const int_t | height, | ||
| intensity_t * | intensities | ||
| ) |
Round the image intensity values to the nearest integer value
| width | |
| height | |
| intensities |
| DICE_LIB_DLL_EXPORT void DICe::utils::spread_histogram | ( | const int_t | width, |
| const int_t | height, | ||
| intensity_t * | intensities | ||
| ) |
Spread the image intensity histogram if it's grouped in a cluster
| width | |
| height | |
| intensities |
| DICE_LIB_DLL_EXPORT void DICe::utils::undistort_intensities | ( | const int_t | width, |
| const int_t | height, | ||
| intensity_t * | intensities, | ||
| const Teuchos::RCP< Teuchos::ParameterList > & | params | ||
| ) |
undistort image intensity values to correct for lens distortion
| width | |
| height | |
| intensities | |
| params |
| DICE_LIB_DLL_EXPORT void DICe::utils::write_color_overlap_image | ( | const char * | file_name, |
| const int_t | width, | ||
| const int_t | height, | ||
| intensity_t * | bottom_intensities, | ||
| intensity_t * | top_intensities | ||
| ) |
write an image to disk with two base images overlayed with transparency
| file_name | the name of the file |
| width | the width of the image to write |
| height | the height of the image |
| bottom_intensities | assumed to be an array of size width x height |
| top_intensities | assumed to be an array of size width x height |
| DICE_LIB_DLL_EXPORT void DICe::utils::write_image | ( | const char * | file_name, |
| const int_t | width, | ||
| const int_t | height, | ||
| intensity_t * | intensities, | ||
| const bool | is_layout_right = true |
||
| ) |
write an image to disk (always output as an 8-bit grayscale image) for more precise output, for example to read the intensity values in later with the same precision, use the .rawi format (see DICe::rawi)
| file_name | the name of the file |
| width | the width of the image to write |
| height | the height of the image |
| intensities | assumed to be an array of size width x height |
| is_layout_right | [optional] memory layout is LayoutRight (row-major) |
| DICE_LIB_DLL_EXPORT void DICe::utils::write_rawi_image | ( | const char * | file_name, |
| const int_t | width, | ||
| const int_t | height, | ||
| intensity_t * | intensities, | ||
| const bool | is_layout_right = true |
||
| ) |
write an image to disk
| file_name | the name of the .rawi file |
| width | the width of the image to write |
| height | the height of the image |
| intensities | assumed to be an array of size width x height |
| is_layout_right | [optional] memory layout is LayoutRight (row-major) |
1.8.16