How to find the gait energy image(GEI) in matlab from a sequence of gait images saved in a folder?
3 次查看(过去 30 天)
显示 更早的评论
this is the gait sequence attached here
4 个评论
Walter Roberson
2017-8-31
Those images appear to already be grayscale to me. However, on the chance they are not, you could use rgb2gray() on the image.
Put all the images into a 3D array with the third dimension being the image number. Then take mean(The3DArray, 3) to take the mean between the images. Note that the result will be floating point not uint8 so you might want to uint8() the result if you plan to display it.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!