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!