Mostrar comentarios más antiguos
顔の動画から輝度値を読み取ることを行っています。現在は手動で領域を指定し、その箇所の輝度値を読み取っていますが、今後は顔追跡を行い、顔だと認識した箇所の輝度値を読み取りたいと思っています。顔追跡と輝度値の読み取りを同時に行う方法はありますか。
追記
現在は以下のコードを用いて輝度値を読み取っています。
vidObj=VideoReader(動画名);
for u=startIndex:1:endIndex
I=read(vidObj,u);
I_cropped=I(指定した座標,:);
temp(:,:,:,:)=I_cropped;
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!