# PrepareNegativeImagePatches

## PURPOSE

PrepareNegativeImagePatches - Crop image patches randomly from background images.

## SYNOPSIS

function PrepareNegativeImagePatches

## DESCRIPTION

     PrepareNegativeImagePatches - Crop image patches randomly from background images.

## CROSS-REFERENCE INFORMATION

This function calls:

- sample_neg_patch sample_neg_patch - Collect random patches.

This function is called by:

- StartFromHere StartFromHere - The entry point of this project.

## SOURCE CODE

    0001 function PrepareNegativeImagePatches
    0002 % PrepareNegativeImagePatches - Crop image patches randomly from background images.
    0003
    0004 load ../template_params.mat
    0005 nT = length(templateParameters);
    0006 for iT = 1:nT
    0007     tSize = templateParameters(iT).templateSize;
    0008     overwrite = false;
    0009     sample_neg_patch(tSize,800,overwrite);
    0010 end