PetteriAimonen / focus-stack

Fast and easy focus stacking
MIT License
247 stars 36 forks source link

Alignment Input-Mask (Feature Request) #44

Open dei-p4i opened 4 months ago

dei-p4i commented 4 months ago

Hi,

a nice-to-have would be the option (e.g. "--alignment-mask=maskfile.png") to supply a mask (image file) to be used in the alignment process, so the findTransformECC ignores parts of the images (inputMask parameter of cv::findTransformECC).

In my use case it would be due to images from a camera with extreme optical vignetting effect at the corners reducing quality of alignment.

Best regards David

PetteriAimonen commented 4 months ago

Sounds reasonable. I won't have time to add this in near future, but pull requests are welcome :)