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: 3.6.4        Current pre-release: 3.6.5 (2025/11/22)

Reference
Table of Contents  ▸  List of Commands  ▸  Matrix Computation  ▸  qr◀  poweriteration    |    solve  ▶

qr

Built-in command

Arguments:

  • _is_reduced_form={ 0:No | 1:Yes }

Description:

Compute QR decomposition of selected matrices.

Assuming a selected image A is a matrix of size m×n (m rows, n columns), this command returns the matrices Q and R, so that A = Q*R.
Q is an orthogonal matrix, of size m×m if is_reduced_form==0, or m×min(m,n) otherwise.
R is an upper-trianguler matrix of size m×n if is_reduced_form==0 or min(m,n)×n otherwise.
Q^T*Q = Id.
If n>m, only the first m×m part of R is upper triangular.

Default values:

is_reduced_form=1.

Example of use:

10,10,1,1,'v(100)' +qr +mmul[-2,-1]

Command: 10,10,1,1,'v(100)' +qr +mmul[-2,-1]
Command: 10,10,1,1,'v(100)' +qr +mmul[-2,-1]
Command: 10,10,1,1,'v(100)' +qr +mmul[-2,-1]
Command: 10,10,1,1,'v(100)' +qr +mmul[-2,-1]
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.