Reading Fractions of a pixel in Image

1 回表示 (過去 30 日間)
Serg Zhelezniak
Serg Zhelezniak 2017 年 12 月 30 日
回答済み: Image Analyst 2017 年 12 月 30 日
Upon inputting an image into Matlab using imread(), Matlab allows you to read the intensity value associated with a single pixel e.g. a 25x25 image has 625 pixels each with an individual pixel intensity value. My question is whether it is possible to take into account a fraction of a pixel, e.g. 0.5 of a pixel rather than 1 pixel at a time.

回答 (1 件)

Image Analyst
Image Analyst 2017 年 12 月 30 日
You can call imresize() to get the size you need so that the locations you want lie on integer indexes. If you have some oddball (x,y) then you'll need to interpolate yourself specifically for that particular location.

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by