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

New to MATLAB?

how to calculate area of a feature in a gray scale image

Asked by sheethal sasidharan on 30 Nov 2012

I am having an Ultrasonic C-Scan gray scale image of a steel billet. I need to find the area of a feature in it by using intensity difference or texture difference or pattern recognition or any other suitable method. The main problem is that the boundries of feature are not demarkated clearly and intensity variation is very less compared to the surrounding area. Will be thankful if anybody is able to give some clues


1 Answer

Answer by Image Analyst

Image Analyst (view profile)

on 30 Nov 2012
Edited by Image Analyst

Image Analyst (view profile)

on 30 Nov 2012

Other than how to upload an image about all I can say is that you can use image processing. You might also see my Image Segmentation Tutorial if you're a novice at image processing.


sheethal sasidharan on 1 Dec 2012

I am uploading a diagramatic representation ( along with original C-Scan image in gray (<>) aswell as colour images (<>. please go through the images a suggest a method for calculating area of equiaxed zone from either grey or colour scale

Image Analyst

Image Analyst (view profile)

on 1 Dec 2012

I'd probably start with an edge detector and look at the direction of the gradients.

sheethal sasidharan on 2 Dec 2012

I have tried with edge detectors it will show multiple no pf edges in columnar zone, and there is not much difference in gradient, moreover some of the gray scale intensities in equiaxed zone are simmilar to that of columnar zone. Ref:,

Image Analyst

Image Analyst (view profile)

Contact us