感兴趣区域检测技术
来源:互联网 发布:java agent 做监控 编辑:程序博客网 时间:2024/06/06 14:59
Boofcv研究:感兴趣区域检测技术
public class InterestPoint { public static <T extends ImageGray> void detect( BufferedImage image , Class<T> imageType ) { T input = ConvertBufferedImage.convertFromSingle(image, null, imageType); InterestPointDetector<T> detector = FactoryInterestPoint.fastHessian( new ConfigFastHessian(10, 2, 100, 2, 9, 3, 4)); detector.detect(input); displayResults(image, detector); } private static <T extends ImageGray> void displayResults(BufferedImage image, InterestPointDetector<T> detector) { Graphics2D g2 = image.createGraphics(); FancyInterestPointRender render = new FancyInterestPointRender(); for( int i = 0; i < detector.getNumberOfFeatures(); i++ ) { Point2D_F64 pt = detector.getLocation(i); if( detector.hasScale() ) { int radius = (int)(detector.getRadius(i)); render.addCircle((int)pt.x,(int)pt.y,radius); } else { render.addPoint((int) pt.x, (int) pt.y); } } g2.setStroke(new BasicStroke(3)); render.draw(g2); ShowImages.showWindow(image, "Detected Features", true); } public static void main( String args[] ) { BufferedImage image = UtilImageIO.loadImage(UtilIO.pathExample("D:\\JavaProject\\Boofcv\\example\\sunflowers.jpg")); detect(image, GrayF32.class); }}
0 0
- 感兴趣区域检测技术
- 感兴趣区域
- OpenCV中感兴趣区域的选取与检测(一)
- OpenCV中感兴趣区域的选取与检测(二)
- opencv鼠标选定感兴趣区域进行目标检测
- OpenCV中感兴趣区域的选取与检测(一)
- OpenCV中感兴趣区域的选取与检测(一)
- 保存图片感兴趣区域
- ROI感兴趣区域
- 定义感兴趣区域ROI
- 《opencv2入门》感兴趣区域
- Opencv感兴趣区域-ROI
- 感兴趣区域ROI
- cvSetImageROI 感兴趣区域选择
- 感兴趣区域的定义
- opencv取消感兴趣区域
- opencv2鼠标选定感兴趣区域用反投影算法检测相似部分
- OpenCV-视频流动态特征感兴趣区域检测--模板匹配(MatchingMethod)
- hdoj The sum problem 2058 (数学等差公式&技巧转换)
- Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missi
- Gradle for Android(二)全局设置、自定义BuildConfig、混淆
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- acm_problem_1013
- 感兴趣区域检测技术
- 视图布局向上偏移的原因及解析
- iOS开发-进阶:NSArray倒序输出
- gem install sass 本地配置和淘宝源无效的解决办法
- Java 四种线程池的用法分析
- 循环队列--数组实现
- Kafka Java API示例
- 网络爬虫基本流程及开源爬虫
- Linux串口(serial、uart)驱动程序设计