I have an image like this? go anybody have any idea how can I gain the orientation of each object? I understand that the objects space not suitable to assign any type of orientation yet at least I learn how have the right to I execute that? Actually, I likewise want to remove some that the objects which have a strange shape.

You are watching: For each location, what is the orientation of the image?

Thanks

I provided this inquiry to practice some of my image processing skills (still in at an early stage stages the exploration).
Here"s what ns did step-by-step come compute the orientation of every object and to compute the linear equation the the major axis of each object.
I download the image and named it "bwimage.png" (also attached, exact same image). The an outcome is presented in a figure below where the major axis of every object is attracted through the center allude (and prolonged a bit).
stats.EndpointX = stats.Centroid(:,1) + <-1,1>.* (stats.MajorAxisLength/1.6 .* sqrt(1./(1+stats.Slope.^2)));
stats.EndpointY = stats.Centroid(:,2) + <-1,1>.* (stats.Slope .* stats.MajorAxisLength/1.6 .* sqrt(1./(1+stats.Slope.^2)));
The orientation of each object is save on computer in stats.Orientation. The slope and also intercept of each significant axis is save on computer in stats.Slope and stats.Intercept. The finish points of every line segment draw is stored in stats.EndpointX/Y. And the center points of each object are stored in stats.Centroid.

Actually, you are right. Girlfriend divide several of the objects to 2 or three. Probably the continuity issue.

See more: The Intimate Adventures Of A London Call Gir L By De Jour, The Intimate Adventures Of A London Call Girl