how to calculate the shape factor?

조회 수: 36 (최근 30일)
mohd akmal masud
mohd akmal masud 2023년 10월 29일
댓글: mohd akmal masud 2023년 10월 30일
Dear All,
Anyone can help me how to calculate the shape factor for each blob on my image as attached.
  댓글 수: 2
Image Analyst
Image Analyst 2023년 10월 29일
What is your definition of shape factor?
mohd akmal masud
mohd akmal masud 2023년 10월 30일
What I understand is, the shape factor is we want to know the shape of volume that have we segment.
this is descrition about the shape factor.
Shape factors are dimensionless quantities used in image analysis and microscopy that numerically describe the shape of a particle, independent of its size. Shape factors are calculated from measured dimensions, such as diameter, chord lengths, area, perimeter, centroid, moments, etc. The dimensions of the particles are usually measured from two-dimensional cross-sections or projections, as in a microscope field, but shape factors also apply to three-dimensional objects. The particles could be the grains in a metallurgical or ceramic microstructure, or the microorganisms in a culture, for example. The dimensionless quantities often represent the degree of deviation from an ideal shape, such as a circle, sphere or equilateral polyhedron.[1] Shape factors are often normalized, that is, the value ranges from zero to one. A shape factor equal to one usually represents an ideal case or maximum symmetry, such as a circle, sphere, square or cube.
the common formula is below

댓글을 달려면 로그인하십시오.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 10월 30일
Is this what you are trying to calculate?
% Read Image
IMG = imread('IMAGE_Blob.png');
% Convert from RGB to gray scale
IMG_gray = rgb2gray(IMG);
% AREA
AREA = bwarea(IMG_gray)
AREA = 326.5000
% Display the minimum Feret properties of the object.
[OUT,LM] = bwferet(rgb2gray(IMG),'MinFeretProperties');
OUT.MinDiameter(1)
ans = 21.7030
OUT.MinAngle(1)
ans = 105.9454
OUT.MinCoordinates{1}
ans = 2×2
181.5000 156.5000 187.4623 135.6321
BW = imfill(rgb2gray(IMG),'holes');
CC = bwconncomp(BW);
[out,LM] = bwferet(CC,'MaxFeretProperties');
maxLabel = max(LM(:));
h = imshow(BW);
axis = h.Parent;
for labelvalues = 1:maxLabel
xmax = [out.MaxCoordinates{labelvalues}(1,1) out.MaxCoordinates{labelvalues}(2,1)];
ymax = [out.MaxCoordinates{labelvalues}(1,2) out.MaxCoordinates{labelvalues}(2,2)];
imdistline(axis,xmax,ymax);
end
title(axis,'Maximum Feret Diameter of Objects');
colorbar('Ticks',1:maxLabel)
  댓글 수: 3
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 10월 30일
All details aer explained in this help documentation: https://www.mathworks.com/help/images/ref/bwferet.html#d126e43971
mohd akmal masud
mohd akmal masud 2023년 10월 30일
I think this is not calculate the shape factor. it just calculate the diameter segmentation itself.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by