本文整理汇总了Java中com.ni.vision.NIVision.ColorMode方法的典型用法代码示例。如果您正苦于以下问题:Java NIVision.ColorMode方法的具体用法?Java NIVision.ColorMode怎么用?Java NIVision.ColorMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ni.vision.NIVision
的用法示例。
在下文中一共展示了NIVision.ColorMode方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: threshold
import com.ni.vision.NIVision; //导入方法依赖的package包/类
private BinaryImage threshold(NIVision.ColorMode colorMode, int low1, int high1, int low2,
int high2, int low3, int high3) throws NIVisionException {
BinaryImage res = new BinaryImage();
NIVision.Range range1 = new NIVision.Range(low1, high1);
NIVision.Range range2 = new NIVision.Range(low2, high2);
NIVision.Range range3 = new NIVision.Range(low3, high3);
NIVision.imaqColorThreshold(res.image, image, 1, colorMode, range1, range2, range3);
res.free();
range1.free();
range2.free();
range3.free();
return res;
}
示例2: extractFirstColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
MonoImage extractFirstColorPlane(NIVision.ColorMode mode) throws NIVisionException {
MonoImage result = new MonoImage();
NIVision.imaqExtractColorPlanes(image, mode, result.image, null, null);
result.free();
return result;
}
示例3: extractSecondColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
MonoImage extractSecondColorPlane(NIVision.ColorMode mode) throws NIVisionException {
MonoImage result = new MonoImage();
NIVision.imaqExtractColorPlanes(image, mode, null, result.image, null);
result.free();
return result;
}
示例4: extractThirdColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
MonoImage extractThirdColorPlane(NIVision.ColorMode mode) throws NIVisionException {
MonoImage result = new MonoImage();
NIVision.imaqExtractColorPlanes(image, mode, null, null, result.image);
result.free();
return result;
}
示例5: replaceFirstColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
ColorImage replaceFirstColorPlane(NIVision.ColorMode mode, MonoImage plane)
throws NIVisionException {
NIVision.imaqReplaceColorPlanes(image, image, mode, plane.image, null, null);
return this;
}
示例6: replaceSecondColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
ColorImage replaceSecondColorPlane(NIVision.ColorMode mode, MonoImage plane)
throws NIVisionException {
NIVision.imaqReplaceColorPlanes(image, image, mode, null, plane.image, null);
return this;
}
示例7: replaceThirdColorPlane
import com.ni.vision.NIVision; //导入方法依赖的package包/类
ColorImage replaceThirdColorPlane(NIVision.ColorMode mode, MonoImage plane)
throws NIVisionException {
NIVision.imaqReplaceColorPlanes(image, image, mode, null, null, plane.image);
return this;
}