Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxExportMatlabPixels.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

void L_HXIMAGEREP HxExportMatlabPixels (HxImageRep img, double *pixels)
 Export image data to array of int. More...


Detailed Description


Function Documentation

void L_HXIMAGEREP HxExportMatlabPixels HxImageRep    img,
double *    pixels
 

Export image data to array of int.

The size of the (pre-allocated) array must be equal to the dimensionality of the pixel values times the number of pixels in the image.

00013 {
00014     HxString fname("HxExportMatlabPixels");
00015 
00016     if (img.isNull())
00017     {
00018         HxGlobalError::instance()->reportError(fname, img.name(), "null image", HxGlobalError::HX_GE_INVALID);
00019         return;
00020     }
00021 
00022     if (pixels == NULL)
00023     {
00024         HxGlobalError::instance()->reportError(fname, "null pointer", HxGlobalError::HX_GE_INVALID);
00025         return;
00026     }
00027     img.getDoublePixels(pixels);
00028 }


Generated on Tue Feb 3 14:18:46 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001