Shrediquette / PIVlab

Particle Image Velocimetry for Matlab, official repository
https://shrediquette.github.io/PIVlab/
MIT License
126 stars 30 forks source link

Change background subtraction #19

Closed Shrediquette closed 3 years ago

Shrediquette commented 3 years ago

Currently, the background subtraction tool subtracts the background from every image and saves the resulting image. This generates a lot of unnecessary data. It should be changed, so that only the background images are saved, and they are subtracted on the fly in the GUI.

Shrediquette commented 3 years ago

Sequencing style is known already, so this option can be removed. Background image should be stored in the GUI and saved in the session. It is subtracted in PIVlab_GUI directly before analysis. There should be an option to enable or disable display of the background subtracted image. Default should be "Display subtracted background".

Shrediquette commented 3 years ago

Implemented in my development branch, needs some more testing before it is released.

But I have a remaining question: if the average intensity is higher than the intensity in an image in some regions, then this image would become negative. Currently, I am clipping everything smaller than zero, which discards data. Is this the way to go...? Difficult to judge...