halcon-get_image_size获取图像尺寸

在HDevelop中

read_image (Image, 'D:/bb/tu/ma.jpg')
get_image_size (Image, Width, Height)
*获取图像尺寸
       

halcon-get_image_size获取图像尺寸

 

在QtCreator中 

    this->resize(500,300);
    HObject  ho_Image;
    ReadImage(&ho_Image, "D:/bb/tu/ma.jpg");

    HTuple  hv_Width, hv_Height;


    ReadImage(&ho_Image, "D:/bb/tu/ma.jpg");
    GetImageSize(ho_Image, &hv_Width, &hv_Height);//获取图像的宽和高

    int Width=hv_Width.I();
    int Height=hv_Height.I();

    qDebug()<<"Width="<<Width<<";    "<<"Height="<<Height;

halcon-get_image_size获取图像尺寸

 

 

 

 

 

halcon-get_image_size获取图像尺寸

相关文章:

  • 2021-07-03
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案