MicroMedIAn / PathAIA

Digital Pathology Analysis Tools
GNU General Public License v3.0
3 stars 3 forks source link

Change the way `interval` works ? #23

Closed schwobr closed 3 years ago

schwobr commented 3 years ago

I always felt the way interval was defined was unnatural to me, but I couldn't really have a strong argument as to why. But as I was thinking about it recently it got a bit clearer:

I am a bit biased towards this as I always viewed the interval between two patches as this distance between them, probably because I always had the notion of overlap in mind. I still feel like saying "there is 0 interval between patches" means they are contiguous, not that they are all at the same place, and that having this new system (besides allowing for default values) is a bit clearer. Do you want your patches to overlap ? Let interval be negative. Do you want them to be distant ? Let it be positive.

Problem is it would completely break backward compatibility and requires a lot of rewriting (which I'm prepared to do), that's why I'd like to have your thoughts on this before going any further. Maybe I'm giving too much importance to that kind of details, I don't know.