Randomly neighbouring pixels from image
古いコメントを表示
Hi all
I have choosed the image random pixels having my code below
clc
close all
clear all
im = imread('frame1.png');
[nRow,nCol,c] = size(im);
N1=25;
N2=25;
randRow = randi(nRow,[N1,1]);
randCol = randi(nCol,[N2,1]);
figure(1);imshow(im);
randimg=im(randRow,randCol,:);
figure(2);imshow(randimg);
Now I want to choose randomly neighbouring pixels from an image.any help is appreciated Thanks
1 件のコメント
Image Analyst
2013 年 6 月 28 日
回答 (1 件)
Nitin
2013 年 6 月 28 日
0 投票
you could use imdilate with a strel to expand the pixels area
カテゴリ
ヘルプ センター および File Exchange で Neighborhood and Block Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!