DICpy.utils¶
- DICpy.utils.get_template(im_source=None, center=None, side=None)[source]¶
Get a square template from image considering the a central coordinate.
Input: * im_source (ndarray)
Image source is the image from where the template is retrieved.
- center (list/tuple/ndarray)
Coordinates of the central pixel of the template.
- side (int)
How many pixels in each side of the central pixel will be used to construct the template.
Output/Returns:
- im_template (ndarray)
Template retrieved from im_source.
- id_row (ndarray)
Coordinates (rows) for locating the template in im_source.
- id_col (ndarray)
Coordinates (columns) for locating the template in im_source.
- DICpy.utils.get_template_left(im_source=None, point=None, sidex=None, sidey=None)[source]¶
Get a rectangular template from image considering the upper left corner as a reference.
Input: * im_source (ndarray)
Image source is the image from where the template is retrieved.
- point (list/tuple/ndarray)
Coordinates of the upper left coorner pixel (reference pixel) of the template.
- sidex (int)
Template size in x direction (columns).
- sidey (int)
Template size in y direction (rows).
Output/Returns:
- im_template (ndarray)
Template retrieved from im_source.