#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... | |
|
||||||||||||
|
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
00028 img.getDoublePixels(pixels);
00029 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001