<small id='t2kCK'></small><noframes id='t2kCK'>

    <legend id='t2kCK'><style id='t2kCK'><dir id='t2kCK'><q id='t2kCK'></q></dir></style></legend>

    1. <tfoot id='t2kCK'></tfoot>
      • <bdo id='t2kCK'></bdo><ul id='t2kCK'></ul>
    2. <i id='t2kCK'><tr id='t2kCK'><dt id='t2kCK'><q id='t2kCK'><span id='t2kCK'><b id='t2kCK'><form id='t2kCK'><ins id='t2kCK'></ins><ul id='t2kCK'></ul><sub id='t2kCK'></sub></form><legend id='t2kCK'></legend><bdo id='t2kCK'><pre id='t2kCK'><center id='t2kCK'></center></pre></bdo></b><th id='t2kCK'></th></span></q></dt></tr></i><div id='t2kCK'><tfoot id='t2kCK'></tfoot><dl id='t2kCK'><fieldset id='t2kCK'></fieldset></dl></div>

      来自点数组列表的java圆识别

      时间:2023-09-30

      1. <small id='4hepU'></small><noframes id='4hepU'>

        <legend id='4hepU'><style id='4hepU'><dir id='4hepU'><q id='4hepU'></q></dir></style></legend>
        <tfoot id='4hepU'></tfoot>
        <i id='4hepU'><tr id='4hepU'><dt id='4hepU'><q id='4hepU'><span id='4hepU'><b id='4hepU'><form id='4hepU'><ins id='4hepU'></ins><ul id='4hepU'></ul><sub id='4hepU'></sub></form><legend id='4hepU'></legend><bdo id='4hepU'><pre id='4hepU'><center id='4hepU'></center></pre></bdo></b><th id='4hepU'></th></span></q></dt></tr></i><div id='4hepU'><tfoot id='4hepU'></tfoot><dl id='4hepU'><fieldset id='4hepU'></fieldset></dl></div>
          <tbody id='4hepU'></tbody>

            • <bdo id='4hepU'></bdo><ul id='4hepU'></ul>

                本文介绍了来自点数组列表的java圆识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我目前有一个来自画布上的手绘点的数组列表.我想知道是否有一个简单的算法来检测该形状是否代表一个圆圈.我已经对此进行了一些研究,我指出的主要项目是霍夫变换或位图图像,但这两者似乎都有点过头了我需要它的顶部.任何指向算法或实现的指针都会非常有帮助.

                I currently have an arraylist of points from a freehand drawing on a canvas. I was wondering if there is a simple algorithm to detect if that shape represents a circle.I have already researched this a little and the main items I am pointed at are either the Hough transform or having bitmap images but both of these seem a little over the top for what I need it for. Any pointers to algorithms or implementation would be very helpful.

                提前感谢sansom,

                thanks in advance sansoms,

                推荐答案

                如果你不知道用户想要画什么(例如,圆、椭圆、直线或矩形),你可以使用一些基本的优化算法来找到与手绘点最匹配的形状.

                If you do not know what the user wanted to draw (e.g., a circle, an ellipse, a line, or a rectangle), you could use some basic optimization algorithm to find the shape best matching the hand-drawn points.

                • 对于每个基本形状(椭圆形、矩形、三角形、直线等),创建该形状的随机实例并测量误差 w.r.t.给定点
                • (单独)优化每个形状,直到获得与给定点最匹配的椭圆、与点最匹配的矩形、最佳三角形等.
                • 选择误差最小的形状并绘制它

                这篇关于来自点数组列表的java圆识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:在 Java 中绘制谢尔宾斯基三角形 下一篇:Java:基于距离的绘图点

                相关文章

                最新文章

              1. <tfoot id='mmYx6'></tfoot>
                    <bdo id='mmYx6'></bdo><ul id='mmYx6'></ul>
                1. <i id='mmYx6'><tr id='mmYx6'><dt id='mmYx6'><q id='mmYx6'><span id='mmYx6'><b id='mmYx6'><form id='mmYx6'><ins id='mmYx6'></ins><ul id='mmYx6'></ul><sub id='mmYx6'></sub></form><legend id='mmYx6'></legend><bdo id='mmYx6'><pre id='mmYx6'><center id='mmYx6'></center></pre></bdo></b><th id='mmYx6'></th></span></q></dt></tr></i><div id='mmYx6'><tfoot id='mmYx6'></tfoot><dl id='mmYx6'><fieldset id='mmYx6'></fieldset></dl></div>

                  <small id='mmYx6'></small><noframes id='mmYx6'>

                    <legend id='mmYx6'><style id='mmYx6'><dir id='mmYx6'><q id='mmYx6'></q></dir></style></legend>