firecat

Results 45 comments of firecat

> It would be nice to not have to depend on boost. However, that would mean reimplementing and maintaining a variety of things that boost gives us. Yes, I also...

https://wiki.qt.io/Deploy_an_Application_on_Windows

请问一下, int CMatchToolDlg::GetTopLayer (Mat* matTempl, int iMinDstLength) { int iTopLayer = 0; int iMinReduceArea = iMinDstLength * iMinDstLength; int iArea = matTempl->cols * matTempl->rows; while (iArea > iMinReduceArea) { iArea...

OpenCV的算子matchTemplate,是有mask这个参数的,它的作用是屏蔽掉图像旋转之后的黑色区域,让其不参与NCC计算。 https://github.com/opencv/opencv/blob/4.5.5/modules/imgproc/src/templmatch.cpp void matchTemplate( InputArray image, InputArray templ, OutputArray result, int method, InputArray mask = noArray() ); 你重构之后的算子,MatchTemplate没有了这个参数,那计算结果会有影响啊? void CMatchToolDlg::MatchTemplate (cv::Mat& matSrc, s_TemplData* pTemplData, cv::Mat& matResult, int iLayer) 请问怎么解决? @DennisLiu1993

看了你的源码。你是把源图使用warpAffine作为旋转,模板图不旋转。 我的算子做法是模板图旋转,源图不旋转。 使用模板图旋转,源图不旋转是不是会更好些?因为可以事先一次性,把各层金字塔和各个旋转角度的模板生成好,然后保存到文件里。但是模板图旋转就得考虑mask的参数。因为这个旋转后的图像默认边缘部分是黑色的。 请问这两种方法,究竟哪个更好?哪个更快?

> 有mask OpenCV的影像卷積複雜多了 ![image](https://user-images.githubusercontent.com/104763587/173099544-01fb5501-9d00-4c23-9f30-28ef6c7fb010.png) 需要兩次fft操作 全圖sqrt、全圖取倒、全圖除法 是的。不知道是否影响算子性能。也不知道如何进一步优化了。。

你好!关于亚像素的计算,请问直接照搬OpenCV的官方算子,即cv::cornerSubPix来计算行不行? https://github.com/opencv/opencv/blob/4.5.5/modules/imgproc/src/cornersubpix.cpp

> > Min Reduced Area是什么参数,有什么作用? > > 這個參數會決定金字塔最頂層的最小面積,也就是決定層數 > > 要是template太大張,Min Reduced Area又很小,則縮小到最頂層的template紋理都會消失 > > 想像你的template圖像中有一條寬度為1pixel的線,那resize為1/4之後這條線可能就消失了 你好,建议把开源项目shape_based_matching也集成到你的项目里,这样主界面有NCC和shape两个匹配模式可供用户操作。方便对比测试。 https://github.com/meiqua/shape_based_matching 谢谢!

> Hi, 你有clone最新的代碼嗎? 針對旋轉角度頂層候選人我有做一些修改,以及加入了SIMD優化的影像捲積 > > 另外,這張圖能傳上來讓我試試? 我是最新的源码,直接编译运行的。图片我发你gmail邮箱。

> 我下载了最新源码,使用了SIMD,速度的确有明显改善。 但是dst2.bmp比dst1.bmp的速度要慢许多,你再试试看? ![image](https://user-images.githubusercontent.com/11898277/172588051-1ace1f3c-2c8e-46ff-a041-40ec8e45998a.png)