LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Allow user-defined fields for image correlation #106

Closed WeisLeDocto closed 6 months ago

WeisLeDocto commented 6 months ago

Until now, users were only allowed to use automatically-generated fields when performing image correlation using the DISCorrel and GPUCorrel Blocks. The fields were provided as strings, and converted into standard fields by the get_field function. Recently, a request was filed for further customization options of correlation fields in #97.

This PR enables users to provide their own correlation fields as numpy arrays, along with strings representing fields to automatically generate. A new example is added, demonstrating the simultaneous use of automatic and user-provided fields.