#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... |
Void ClipToZeroOne (Matf & mat) |
Void ImageToMat (const Image & img, Matf & mat, ImgChannel chn = chMono) |
Void MakeAbs (Matf & mat) |
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) |