Learn R Programming

GSCAD (version 0.1.0)

ImageReCon: Combine patches of image into full image

Description

Suppose an image matrix A of size M by N is splited into (M-m+1)(N-n+1) overlapped small patches of size m by n. Given a matrix B of size (mn) by (M-m+1)(N-n+1) , where each column of B is a vectorized small patch, this function try to reconstruct the full image A.

Usage

ImageReCon(B, mm, nn, m, n, stepsize = 1)

Arguments

B

An (mn) by (M-m+1)(N-n+1) matrix.

mm, nn

Full image of size (mm by nn).

m, n

Size of the small patches (m by n).

stepsize

(optional) The stepsize when splicting the image. Default is 1

Value

A mm by nn matrix