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
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing and Computer Vision finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!