Open hajicj opened 8 years ago
(Related to #118.)
Motivation: make TrimmedLasso tricks work in grayscale images without the need for difficult global binarization.
In order for TrimmedLasso to work, we need to build a mask of the lasso-ed region. We can build this mask dynamically, on some assumptions:
Just call otsu binarization on the bounding box and go from there.
This could be attempted by merging the functionalities of Region Binarize and Trimmed Lasso.
(Related to #118.)
Motivation: make TrimmedLasso tricks work in grayscale images without the need for difficult global binarization.
In order for TrimmedLasso to work, we need to build a mask of the lasso-ed region. We can build this mask dynamically, on some assumptions:
Easiest solution
Just call otsu binarization on the bounding box and go from there.