to flip an image block across main diagonal line y=x

조회 수: 1 (최근 30일)
Indu Aggarwal
Indu Aggarwal 2015년 5월 1일
댓글: Indu Aggarwal 2015년 5월 8일
I have an image of size 256x256 and it is divided into 58081 overlapping blocks of size 16x16. I flipped each and every block vertically and horizontally using flipdim(image block, dimension)function. Is there any function to flip every block across the main diagonal line y=x?
  댓글 수: 1
Image Analyst
Image Analyst 2015년 5월 1일
If they're overlapping , then it must look like a totally unrecognizable mess as some pixels get flipped over and over and over again and end up who knows where.

댓글을 달려면 로그인하십시오.

채택된 답변

Jeff E
Jeff E 2015년 5월 1일
transpose
img_block_diag = transpose(img_block);

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by