#include "nrro.h"
#include "nrroKernel.h"
Go to the source code of this file.
Functions | |
NrroSP | reshapeNrroImageA (const NrroSP n, const gutz::vec2i size, const gutz::vec2f minPos=gutz::vec2f_zero, const gutz::vec2f maxPos=gutz::vec2f_one, const NrroKernel &k=CatmulRomKernel) |
this one respects the aspect ratio (as described above) | |
template<class T> void | nrroSet (NrroSP n, const T *vvec) |
Set a multi-channel nrro to some vector of values, the types should match but they dont have to! The vectors lenght should be at least the size of the nrroSp's dim(0). | |
template<class NT, class VT> void | nrroSet (Nrro::NrroIter< NT > ni, const VT *v) |
use this if you have the iterator already |
|
use this if you have the iterator already
Referenced by TFImage::clear(). |
|
Set a multi-channel nrro to some vector of values, the types should match but they dont have to! The vectors lenght should be at least the size of the nrroSp's dim(0).
|
|
this one respects the aspect ratio (as described above) gota be reasonable here.... x > y y > x crop and padd the image to the right size, relatively speaking resample to the actual right size inverse Aspect ratio of image, remember that 1 is the relative size of the largest spatial axis.
Definition at line 28 of file nrroUtil.cpp. References Nrro::IMAGE, gutz::SmartPtr< Nrro >::isNull(), n, NrroSP, size, gutz::vec2f, and gutz::vec2f_one. Referenced by SlicerWidget::setSlice(). |