1
$\begingroup$

I am trying to process 200+ images (10 datasets, each set contains ~20 images) and see how much each image changes or moves compared to a starting position for a dataset. The problem is, I expect a very small displacement value, however I would need to extract that value. This is what I tried so far:

test= 
  Values[ComponentMeasurements[ColorConvert[#, "Grayscale"], 
       "MaxCentroidDistance"]][[1]] & /@ allData2;
ListPlot[test, PlotRange -> All]

Output:

plot with MaxCentroidDistance

However, I am not sure how to interpret the pixel values here as they are 10 different sets and you can see how they are separated. Compare the MaxCentroidDistance plot to what I see when I tried IntensityCentroid:

plot with IntensityCentroid

The images in all 10 datasets produce similar shapes. I only expect small change in where these shapes are formed.

Sample:

enter image description here

enter image description here

enter image description here

enter image description here

$\endgroup$
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.