extractRandC1Patches.m in standardmodelrelease
Sponsored links
function cPatches = extractRandC1Patches(cItrainingOnly, numPatchSizes, numPatchesPerSize, patchSizes);
%extracts random prototypes as part of the training of the C2 classification
%system.
%Note: we extract only from BAND 2. Extracting from all bands might help
%cPatches the returned prototypes
%cItrainingOnly the training images
%numPatchesPerSize is the number of sizes in which the prototypes come
%numPatchesPerSize is the number of prototypes extracted for each size
%patchSizes is the vector of the patche sizes
if nargin<2
numPatchSizes = 4;
numPatchesPerSize = 250;
patchSizes = 4:4:16;
end
nImages = length(cItrainingOnly);
%----Settings for Training the random patches--------%
rot = [90 -45 0 45];
c1ScaleSS = [1 3];
RF_siz = [11 13];
c1SpaceSS = [10];
minFS = 11;
maxFS = 13;
div = [4:-.05:3.2];
Div = div(3:4);
%--- END Settings for Training the rand
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.