How to find row and column of a pixel in an Image?
12 ビュー (過去 30 日間)
古いコメントを表示
Karan Ratnaparkhi
2011 年 3 月 21 日
コメント済み: Image Analyst
2016 年 4 月 23 日
Guys I want to find the rows and columns of pixels of image so that i can put that in if condition inside for loop. Bt i am unable to write that code. plz help me.
3 件のコメント
Radha r
2016 年 4 月 23 日
how do find image row and coloumn pixel in matrix in train image because i would geetting the good and bad pixel find out
Image Analyst
2016 年 4 月 23 日
Radha r, Start your own question and post your image and explain what "good" and "bad" means to you.
採用された回答
Wolfgang Schwanghart
2011 年 3 月 21 日
Hi, what about this:
[ROWS,COLUMNS] = ndgrid(1:size(I,1),1:size(I,2));
ROWS = ROWS(:);
COLUMNS = COLUMNS(:);
where I is your image.
Best regards, Wolfgang
その他の回答 (3 件)
Karan Ratnaparkhi
2011 年 3 月 21 日
2 件のコメント
Wolfgang Schwanghart
2011 年 3 月 21 日
This sounds to me as if you want to perform some calculations within a subset of your image. Without knowing what exactly you want to do there, I suggest to take a look at the roi-based image processing section of the documentation.
http://www.mathworks.com/help/toolbox/images/ref/roifilt2.html
HTH, Wolfgang
Syed Ali Hassan
2014 年 2 月 22 日
Check this [row_limit,col_limit]=size(img);
3 件のコメント
Radha r
2016 年 4 月 23 日
it is not find the t my answer and what are you telling me i ont now please tell me example
Radha r
2016 年 4 月 23 日
it is not find the t my answer and what are you telling me i ont now please tell me example
1 件のコメント
Image Analyst
2016 年 4 月 23 日
Radha r, Start your own question and post your image and explain what "good" and "bad" means to you.
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!