opencv3_java 添加mask掩码 AddMask

添加mask掩码 AddMask


package opencv_java_demo;

import org.opencv.core.*;
import org.opencv.imgcodecs.*;

public class AddMask {

	private static Mat makeMask(Mat src){
		Size sz=new Size(src.width(),src.height());
		Mat mask=new Mat(sz,CvType.CV_8UC1);
		mask=Mat.zeros(sz, CvType.CV_8U);
		for(int y=src.height()/4;y



opencv3_java 添加mask掩码 AddMask_第1张图片

opencv3_java 添加mask掩码 AddMask_第2张图片

opencv3_java 添加mask掩码 AddMask_第3张图片

opencv3_java 添加mask掩码 AddMask_第4张图片

你可能感兴趣的:(Opencv3_Java,opencv3,java)