Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Centroids of spots before and after smoothing mask

Subject: Centroids of spots before and after smoothing mask

From: Andre L

Date: 30 Sep, 2008 15:42:38

Message: 1 of 2

Hi,
I am writing code to analyze laser spots in an image, I have located the centroids using regionprops. I am now trying to determine the difference in the centroid locations before and after applying a smoothing mask. I am not sure how to "locate" two spots and their centroids that are close to one another (say not more than a pixel apart) in order to then see what the distribution for this difference is.

In other words, I am trying to see if the mask applied alters the location of the centroid on average for every spot.

Thank you,

Andre

Subject: Centroids of spots before and after smoothing mask

From: Skeptic

Date: 2 Oct, 2008 00:33:53

Message: 2 of 2

On Sep 30, 11:42=A0am, Andre L <alor...@nd.edu> wrote:
> Hi,
> I am writing code to analyze laser spots in an image, I have located the =
centroids using regionprops. I am now trying to determine the difference in=
 the centroid locations before and after applying a smoothing mask. I am no=
t sure how to "locate" two spots and their centroids that are close to one =
another (say not more than a pixel apart) in order to then see what the dis=
tribution for this difference is.
>
> In other words, I am trying to see if the mask applied alters the locatio=
n of the centroid on average for every spot.
>
> Thank you,
>
> Andre

--------------------------------------------------------------
Andre,
No need to do it that way. Just look at your mask. If it's
symmetrical about its center pixel, you won't shift the centroid by
applying the mask.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us