CameronBodine / PINGMapper

Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
https://cameronbodine.github.io/PINGMapper/
MIT License
39 stars 3 forks source link

Converting images in rect_wcr folder into corresponding images in 'for_label' folder #116

Open bestplanetarian opened 1 month ago

bestplanetarian commented 1 month ago

Currently I am working Side-scan-sonar project.

Because my teammates are labeling on the big sonar mosaic rather than small images in 'for_label' folder, the big mosaic are merged from small images in rect_wcr folder, I need to convert images in rect_wcr folder into corresponding images in 'for_label' folder.

How can I do it? which part of PINGMapper code should I use?

CameronBodine commented 1 month ago

Thanks for your interest and very sorry for the delay. PM does not currently have a workflow for converting rectified imagery back into a waterfall type of image. This would certainly be a beneficial enhancement. I don't currently have time to investigate this. However, if you do, you can look at rectSonParallel function . This function calculates the mapping from the non-rectified (waterfall) pixels to the geometric coordinates. I hope this helps. If you do generate a workflow to do this, I would be happy to implement your approach!