image

3 ビュー (過去 30 日間)
PChoppala
PChoppala 2011 年 10 月 9 日
Hi I want to create an 30 frames of images with each image having 20*20 pixels. I would also want to access the grey scale level of each pixel. Please help me out with this Thanx

採用された回答

PChoppala
PChoppala 2011 年 10 月 9 日
And also, I want to set a threshold \gamma = 2, and find which value of the pixels cross the threshold, for each frame
  3 件のコメント
PChoppala
PChoppala 2011 年 10 月 9 日
I want to access the intensity of each pixel, and find those pixels whose intensity cross the threshold '2'
Image Analyst
Image Analyst 2011 年 10 月 10 日
Hmmm... that was not a clarification. So I'll just say the intensity of each pixel is imageArray(row, column). And the rows and columns can be found using [rows columns] = find(imageArray > 2). Regarding "those pixels whose intensity cross...": What pixels are those? A pixel has one single intensity - it's intensity does not "cross" anything. You'd have to be talking about a group of pixels to talk about the intensity crossing anything, like the boundary where the pixels are now >2 and where on the other side of the boundary they are <=2. Perhaps some careful decisions about what terms you use could help describe your situation better.

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 10 月 9 日
How have you stored the 30 frames ?
Probably the easiest way would be to store them as a 3D array indexed at Row, Column, and FrameNumber.
  7 件のコメント
PChoppala
PChoppala 2011 年 10 月 10 日
rand(20,20) is not correct....
Image Analyst
Image Analyst 2011 年 10 月 10 日
So multiply by 255 and cast to uint8. By the way, an image does not have to be in the range 0-255. That's just for 8 bit unsigned gray level images, but you can have 16 bit integer images, floating (double) point images, etc.

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

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by