我正在使用Marvin Framework来获取静脉图案,但我不知道如何去除叶子轮廓
我正在执行以下操作:(每个函数都调用其相应的 Marvin 插件。):
MarvinImage source = MarvinImageIO.loadImage("source.jpg");
MarvinImage gsImage = grayscaleImage(source);
MarvinImage blImage1 = blurEffect(gsImage.clone(),1);
MarvinImage blImage2 = blurEffect(blImage1.clone(), 13);
MarvinImage difi = subtract(blImage2.clone(), blImage1.clone());
difi = invertC(difi.clone());
difi = closingEffect(difi.clone());
difi = MarvinColorModelConverter.binaryToRgb(difi.clone());
difi = reduceNoise(difi.clone());
difi = invertC(difi.clone());
MarvinImageIO.saveImage(difi, "result.jpg");