how to calculate width and length of binary image?

14 ビュー (過去 30 日間)
sou
sou 2014 年 10 月 18 日
コメント済み: sou 2014 年 10 月 20 日
I need to calculate width and length of the binary image... PLZ SUGGEST A WAY

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 18 日
You can use the size() function:
[theLength, width] = size(binaryImage);
The first return argument, theLength, is the number of rows (the height), and the second output argument, width, is the number of columns.
As an aside, don't use length as the name of a variable since it's the name of a built-in function.
  8 件のコメント
sou
sou 2014 年 10 月 20 日
ok sir i will check this...
sou
sou 2014 年 10 月 20 日
sir but this gives wrong width for my image sir...
my image is in this link http://labs.fme.aegean.gr/decision/downloads in this link under martin2003 zip file New database pictures\normal superficiel cells are my images sir... plz try it

サインインしてコメントする。

その他の回答 (1 件)

Matt J
Matt J 2014 年 10 月 18 日
編集済み: Matt J 2014 年 10 月 18 日
The size() command?
[Width,Length]=size(binaryImage);
  1 件のコメント
sou
sou 2014 年 10 月 19 日
PLZ SUGGEST ME A WAY

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by