Matlab中控制点的自动选择
有没有办法在Matlab中自动选择控制点,而不是通过cpselect手动选择它们?非常感谢。
Is there a way to select the control points automatically in Matlab instead of manually selecting them by cpselect? Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近刚刚从事一个项目,我必须做同样的事情 - 最终我发现您可以自动选择控制点,但前提是您使用自动选择来查找未配准和正射影像的控制点。 (用于定义图像变换的控制点存储在矩阵中,因此如果您可以让自动化系统以矩阵形式输出一组点坐标,您可以将它们直接传递到 cp2tform 并完全绕过 cpselect。) , cpselect 使用某种特殊的数据结构存储相应的图像点对,因此我永远无法只向它传递一个图像的一组控制点,同时将另一个图像留空。
I just recently worked on a project where I had to do the same thing -- eventually I found that you can select control points automatically, but only if you use automatic selection to find the control points for both the unregistered and the orthophoto. (The control points used to define image transforms are stored in matrices, so if you can get your automated system to output a set of point coordinates in matrix form you can pass them to straight to cp2tform and bypass cpselect entirely.) On the other hand, cpselect stores corresponding pairs of image points using some kind of special data structure, so that I was never able to just pass it a set of control points for one image while leaving the other image blank.
我没有 Matlab 图像处理工具箱,但我从文档中看到可以使用指定初始控制点集的参数来调用 cpeselect。您能否将您的任务简化为自动创建初始集?
I don't have the Matlab Image Processing Toolbox, but I see from the documentation that cpeselect can be called with an argument specifying the initial set of control points. Can you reduce your task to automating the creation of that initial set?