how to calculate threshold value in frame difference algorithm
5 ビュー (過去 30 日間)
古いコメントを表示
i was studying frame difference algorithms and in every pdf it says find threshold value and didn't mention how can anyone tell me how
3 件のコメント
Image Analyst
2014 年 8 月 19 日
Because it worked for them. The value that "works" for you may be different, as I said in my Answer below.
回答 (1 件)
Image Analyst
2014 年 8 月 18 日
Subtract the frames. Be sure to cast to double before you do so to avoid clipping values less than zero. You might want to take the absolute value of the difference image. Then pick a threshold however you want. The lower the threshold, the more stuff you will get and the higher the threshold the fewer pixels will be selected. Choose the threshold to get just the pixels you want and no others. Thresholding may not do it - you may have to combine with other methods, like spatial operations that consider neighborhoods around each pixel, or shape, or whatever. It really depends on what you want to find.
3 件のコメント
Image Analyst
2014 年 8 月 28 日
Can you go ahead and officially "Accept" the answer then? Thanks in advance.
Mohammedashraf Shaikh
2017 年 4 月 6 日
By frame differncing, I got the subtracted image, now how to get thresold and use thresold to detect activity
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!