필터 지우기
필터 지우기

Extracting random patches from a image

조회 수: 3 (최근 30일)
Aniket Kumar
Aniket Kumar 2019년 6월 7일
댓글: Rik 2019년 6월 7일
I have to extract 30 random patches of size 32*32 from an image and then storing all that patches in a single matrix.
please help!
  댓글 수: 3
Aniket Kumar
Aniket Kumar 2019년 6월 7일
I have done this using for loop but that extracts patches sequentially not randomly.
I was looking if there is any direct function in matlab, which does nearly the same.
Rik
Rik 2019년 6월 7일
You could use the randi function to generate random centerpoints and expand those to full patches.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by