I have various discrete blobs ( call them “cells” ) in my images that I’d like to track even though I rotate or ( someday skew or otherwise use some affine transformation on) the image. If it’s just a rotation I can write code to transform the old centroid to a new centroid and locate where, say, cell #23 moved to.
But I was wondering if there’s some built-in clever way to tag each cell with a persistent number or name that survives image rotation. Ideas?
I guess I could make a mask-type RGB second image and color-code each cell to a unique color ( RGB has lots ) and transform both the second image along with the first one and look up the RGB color of the second image blob and translate back to a unique cell identifier in the first image positionally.
Just wondered if anyone else had ever had such a need or solved this question or if I missed some clever macro command.