how to make an occlude image
조회 수: 1 (최근 30일)
이전 댓글 표시
i am doing occluded face recognition for my final project. first, i input regular image which is not occluded. then i have to do experiments for occluded image. i used paint to make a square on the face image to make my image occluded. but when i try to test it with my code, it turn error. I found that the image that i edit with paint to make the picture occlude is 112x92x3. The input image should have the same size with the image that i already trained before which is 112x92, but it become 3 dimension. How do i want to make it 2 dimension only and make my image occluded. Please help me....thank you
댓글 수: 0
채택된 답변
David Young
2011년 3월 25일
Assuming you have the Image Processing Toolbox, try using rgb2gray to convert your image to 2-D.
Alternatively, why use paint to occlude the image? Simpler to just change it within MATLAB.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!