C++ Zxing iOS:裁剪二进制位图

C++ Zxing iOS:裁剪二进制位图,c++,iphone,zxing,C++,Iphone,Zxing,我正在尝试同时读取3个条形码,所以我需要将图像裁剪成3个部分。我试过了,但失败了: Ref<Result> MultiFormatReader::decodeInternal(Ref<BinaryBitmap> image){ try{ DecodeHints hints = DecodeHints::DEFAULT_HINT; oned::MultiFormatOneDReader od(hints); image->cr

我正在尝试同时读取3个条形码,所以我需要将图像裁剪成3个部分。我试过了,但失败了:

Ref<Result> MultiFormatReader::decodeInternal(Ref<BinaryBitmap> image){
   try{
      DecodeHints hints = DecodeHints::DEFAULT_HINT;
      oned::MultiFormatOneDReader od(hints);
      image->crop(0,0,100,image->getHeight()); //This method is not implemented, I don't know why.
      return od.decode(image, hints);
   } catch (ReaderException const& re){
      (void)re;
   }
   throw ReaderException("No code detected");
Ref-multiformatrader::decodeInternal(Ref-image){
试一试{
decodeHists=decodeHists::默认提示;
oned::多格式阅读器od(提示);
image->crop(0,0100,image->getHeight());//这个方法没有实现,我不知道为什么。
返回od.decode(图像、提示);
}捕获(ReaderException const&re){
(无效)re;
}
抛出ReaderException(“未检测到代码”);
有人有主意吗


谢谢!

它是如何失败的?更多信息?它失败是因为crop没有在ZXing中实现,我以为是,但当我查找它时,我发现:“抛出IllegalArgumentException(“…”)