#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxImageAsByte (HxImageRep img) |
Convert the pixel representation to HxByte. More... |
|
Convert the pixel representation to HxByte. Conversion is done via a cast.
00014 { 00015 HxImageSignature signature(HXIMAGESIG2DBYTE); 00016 signature.setImageDimensionality(img.dimensionality()); 00017 return img.signature() == signature ? 00018 img : HxImageFactory::instance().fromImage(signature, img); 00019 } |