I'm trying to register a segmentation mask where each segmented particle is given an integer value. These values are altered during registration resulting in loss of data. I assume that this is cause by an interpolation step. Is there a way around this?
For anyone experiencing a similar problem, rounding the transformation vector to nearest integer was a fix in my case: transformation["tvec"].round(0)
I'm trying to register a segmentation mask where each segmented particle is given an integer value. These values are altered during registration resulting in loss of data. I assume that this is cause by an interpolation step. Is there a way around this?
For anyone experiencing a similar problem, rounding the transformation vector to nearest integer was a fix in my case:
transformation["tvec"].round(0)