How to average values of certain pixels of multiple targets in a 2D data while keeping sign as weights to have one value and sign?
2 次查看(过去 30 天)
显示 更早的评论
Dear MATALB Experts,
I have estimated the velocity of several ships in a scene, and it appears that each ship has a variable velocity. However, I believe that each ship should have one velocity value and one sign (either -ve or +ve). To achieve this, I need to average the pixel values of each ship target and keep the signs as weights. Specifically, if there are more negative weights than positive weights, the final sign should be negative.
Could you please provide guidance on how to average the pixel values and obtain one sign for each ship in the given scene? I have attached a .mat file for your reference.
Thank you for your help.
Best regards,
Amjad
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379814/image.jpeg)
4 个评论
Image Analyst
2023-5-15
If you have any more questions, then attach your original data and code to read it in with the paperclip icon after you read this:
Also give code to create the image you attached from the original data.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Banks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!