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:
Obtaining centroid and cropping 20x20 pixels around the centroid

Subject: Obtaining centroid and cropping 20x20 pixels around the centroid

From: Ravikanth LANKAPALLI

Date: 24 Apr, 2013 21:37:09

Message: 1 of 1

Hi,
I have an image with black background and five individual wheat kernels in white. I want to get centroid of these five individual wheat kernels.
My area of interest is 20x20 pixels around this centroid for all the kernels.
Can anyone give me a code for obtaining all the pixels in this 20x20 area around the centroid, for all the five kernels.
Thank you.

Tags for 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