Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MatUtil.cc File Reference

#include "gcl/MatUtil.h"

Include dependency graph for MatUtil.cc:

Go to the source code of this file.


Functions

Void ImageToMat (const Image &img, Matf &mat, ImgChannel chn)
Converts an image to a matrix.

Void MatToImage (const Matf &mat, Image &img, ImgChannel chn)
Makes an image out of a matrix.

Void MakeAbs (Matf &mat)
replace each element with its absolute value.

Void ClipToZeroOne (Matf &mat)
clip each element to the interval [0, 1].

Void MakeRandomRotation (Vector x, Mat3d &M)
Create a random rotation matrix from the random vector v. More...


Function Documentation

Void ClipToZeroOne (Matf & mat)

clip each element to the interval [0, 1].

Definition at line 45 of file MatUtil.cc.

Void ImageToMat (const Image & img, Matf & mat, ImgChannel chn = chMono)

Converts an image to a matrix.

Definition at line 15 of file MatUtil.cc.

Void MakeAbs (Matf & mat)

replace each element with its absolute value.

Definition at line 36 of file MatUtil.cc.

Void MakeRandomRotation (Vector v, Mat3d & M)

Create a random rotation matrix from the random vector v.

From Jim Arvo, graphics gems II

Definition at line 57 of file MatUtil.cc.

Void MatToImage (const Matf & mat, Image & img, ImgChannel chn = chMono)

Makes an image out of a matrix.

Definition at line 25 of file MatUtil.cc.


Generated at Sat Aug 5 00:17:00 2000 for Graphics Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000