G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.6 (2026/10/14)

Reference
Table of Contents  ▸  List of Commands  ▸  Neural Networks  ▸  nn_patch2dmat◀  nn_patchdown3d    |    nn_patchup2d  ▶

nn_patch2dmat

Arguments:

  • out,in,patch_size>0,0<=_overlap

Description:

Add a patch2dmat layer (rearrangement of image patches as matrix columns or rows) to the current network.

If arrangement=0, each patch is a column of the output matrix (width=nb_patches, height=patch_size^2*spectrum).
If arrangement=1, each patch is a row of the output matrix (width=patch_size^2*spectrum, height=nb_patches).

Default values:

overlap=0 and arrangement=0.

G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.