#include "gcl/Image.h"
#include "gcl/Geometry.h"
Include dependency graph for MatUtil.h:
Go to the source code of this file.
Functions | |||
Void | ImageToMat (const Image &img, Matf &mat, ImgChannel chn = chMono) | ||
Converts an image to a matrix. | |||
Void | MatToImage (const Matf &mat, Image &img, ImgChannel chn = chMono) | ||
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 v, VecTrans &m) | ||
Create a random rotation matrix from the random vector v. More... |
Void ClipToZeroOne (Matf & mat) |
Void ImageToMat (const Image & img, Matf & mat, ImgChannel chn = chMono) |
Void MakeAbs (Matf & mat) |
Void MakeRandomRotation (Vector v, VecTrans & 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) |