java opencv Mat pixelsSubMat = pixels.submat(matOfPoint.toList()); 报错
时间: 2023-11-28 09:50:24 浏览: 123
pxdsPred = semanticseg(imds,net,'MiniBatchSize',8,'Verbose',true);
metrics = evaluateSemanticSegmentation(pxdsPred,pxdsTruth,'Verbose',true);
%% Visualize Results
for i=1:length(imds.Files)
I = read如果报错信息是 "cannot find symbol method toList()",那可能是因为 `matOfPoint` 对象没有导入image(imds,i);
C = readimage(pxdsPred,i);
B = labeloverlay(I,C,'Colormap',[0 0正确的包。请确认你在代码中导入了 `org.opencv.core.MatOfPoint` 和 `java.util.List` 0;0 1 0],'Transparency',0.4);
figure, imshow(B), title('Predicted Segmentation');
。
如果报错信息是 "incompatible types: Mat cannot be converted to MatOfPoint",那可能是因为 `matOfend
```
以上是一个基于MATLAB的UNet代码及所需文件的示例,其中train.m用于训Point` 对象被错误地声明为 `Mat` 类型。请确认你正确地声明了 `matOfPoint` 为 `MatOfPoint` 类型。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![7z](https://img-home.csdnimg.cn/images/20241231044736.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)