TomographicImaging / iDVC

Digital Volume Correlation user interface
Apache License 2.0
4 stars 1 forks source link

Load images is not necessary when the reg box size is not changed #221

Open DanicaSTFC opened 5 months ago

DanicaSTFC commented 5 months ago

The method self.LoadImagesAndCompleteRegistration() https://github.com/TomographicImaging/iDVC/blob/1eae74768ef7f625fbff9042055172dfe188a4b0/src/idvc/dvc_interface.py#L1608C27-L1609C12 is called by https://github.com/TomographicImaging/iDVC/blob/1eae74768ef7f625fbff9042055172dfe188a4b0/src/idvc/dvc_interface.py#L1496 This call implies that the images are reloaded every time the registration is restarted. Sometimes this is not necessary eg when the size of the box is not changed between two registrations. The code would be faster if the data was loaded only when the box is updated.