Reshape mean vector to 2D mean face image in matlab?

조회 수: 4 (최근 30일)
Kumar Thapa
Kumar Thapa 2019년 12월 20일
답변: Kaashyap Pappu 2019년 12월 26일
How to reshape the mean vector to a 2D mean face image in matlab?

답변 (1개)

Kaashyap Pappu
Kaashyap Pappu 2019년 12월 26일
You can use the reshape function to change the vector into a 2-Dimensional array. Following this, you can use the imagesc function to plot the image, where each array value is represented using the appropriate colourmap.
While reshaping, it is important to note that MATLAB’s vector indexing follows a column-major approach.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by