function [points] = SelectKRandomPoints(A,k)
% this function generates a list of k randomly selected pixels from an % image
% INPUTS: A = A 3D image array from which to select points from % k = The number of points to randomly select
% OUTPUT: points = A 2D array containing k rows and 2 columns, representing % k randomly selected points (pixels).
% Author: Johnny Johnny
% loop through rows
for row = 1:k
% loop through columns
for col = 1:2
points(row,col)=___________ %What do i do here%
end
end
Aucun commentaire:
Enregistrer un commentaire