Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Modifying images to get them clear
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everyone,
I'm currently working on a project where I have to track a moving object (completly black object) hitting a black straight wall. The whole Background was white. I transformed the colour image to an greyscale image and then used the imbinarize function. It always worked until now.
Now I have a few videos where I have a shadow that partially covers the wall. That is a problem because I need to see the object hitting that clear wall. I'll attach a pic of what it looks like and of what I want it to be.
I also got a problem when imbinarizing that image, because sometimes the wall is way too exposed to the light ( the wall reflects a lot of light and becomes grey/white ).
I've already used a few functions like imadjust and tried to use the different settings of imbinarize but it didn't get any better...
In easier words I want the Projectile and the Wall to have clear outlines.
Has anyone an idea how I could work this out ?
Thanks in advance for any response.
댓글 수: 0
답변 (1개)
Parth Dethaliya
2020년 7월 15일
If you are using imbinarize function in default condition then this problem may occur, Try changing the threshold values for binarizing.
Threshold = graythresh(GrayImage);
This function gives the default threshold values ranging from 0 to 1, try increasing this value and binarize image like,
Binary_Image = imbinarize(GrayImage,Threshold+0.01);
you can change the number 0.01 iteratively to find better results depending on your application.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!