throwOrthancException(ErrorCode_IncompatibleImageFormat,"Image not supported: planar configuration is "+boost::lexical_cast<std::string>(planarConfiguration));
}
if(samplesPerPixel_==0)
{
throwOrthancException(ErrorCode_NotImplemented);
throwOrthancException(ErrorCode_IncompatibleImageFormat,"Image not supported: samples per pixel is 0");