我遇到了这个问题,我有这一行Dim i, j, x, y, Labels As Integer,当我想在循环中以如下方式使用标签变量时,我会得到一个错误:Labels = CInt(DBRange.Rows那么,如果变量i是一个整数,而变量标签也是一个整数,如果我使用CINT函数将单元格值转换为整数,那么为什么我会得到一个“类型错配”错误呢?
我正在使用ConnectedCompnents方法在项目中进行编码temp = img.ThresholdBinary(new Gray(50), new Gray(255));Mat stats = new Mat();
MCvPoint2D64f[] centerpoints = new MCvPoint2D64f