Randomly neighbouring pixels from image
1 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!