my project is to detect the sequence and the positon of IR from a video, i convert the video into frames then to gray scale then to binary and now i have the max pixel IR is 1 and other pixels is 0 how could i detect the 1's and the position?plz
2 次查看(过去 30 天)
显示 更早的评论
close all RGB = imread('099.png'); I=rgb2gray(RGB); M=max(max(max(max(I)))); Inew= idivide(I,M,'fix' ); imagesc(Inew') % Generate sample data imageArray = Inew % Find the max value. maxValue = max(imageArray(:)) % Find all locations where it exists. [rowsOfMaxes colsOfMaxes] = find(imageArray == maxValue)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!