public class SIFT {
public static void main(String[] args) throws IOException {
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
Mat src=Imgcodecs.imread("D://save.jpg");
int width = src.width();
int height = src.height();
int pointCount = width * height;
int dims = src.channels();
Mat points=new Mat(pointCount, dims, CvType.CV_32F);
int index=0;
for (int i = 0; i < height; i++) {
for (
java——调用Opencv的k均值函数实现图像分割
最新推荐文章于 2024-03-11 09:19:55 发布