Hi @Marcos_Adrian_Villam ,
Welcome to the forum.
The “Distance transform” is helpful here, try this imagej macro
to get an image like this:
Then measuring the “min” gray value of the distance transform for each of your ROIs will give you the perpendicular distance to the line. (i.e. the distance from the line to the closest point of each roi).
Edit: The title says you want the distance to the center. In that case, measure the center points, and find the value of the distance transform at each of those.
Hope that helps,
Make sure the line goes all the way to the end. If the line is too short, you won’t get "perpendicular distance for regions that are past the end points.