k_SSD_NearestPatches

Extract the centers of the K best patches with L2 norm.

Contents

Syntax.

sample = K_SSD_best_patches( X );
sample = K_SSD_best_patches( X, ...);

Description.

sample = kCauchyNearestPatches( X ); returns, for each pixel of the image, the centers of the K best patches, in the sense of the L2 norm, in a search window around the pixel.

Example.

% Load a gray-scale image and set the gamma parameter.
input= double(imread('./data/parrot.png'));
input= input + 30*randn(size(input));

% Patch extraction.
sampleFromPatches = K_SSD_best_patches(input, ...
                                   'SampleSize', 10,...
                                   'PatchWidth', 5,...
                                   'SearchWindowRadius', 10);

% Display the NL-mean.
imshow(uint8(mean(sampleFromPatches,3)))

Input arguments.