Filter löschen
Filter löschen

Extracting random patches from a image

3 Ansichten (letzte 30 Tage)
Aniket Kumar
Aniket Kumar am 7 Jun. 2019
Kommentiert: Rik am 7 Jun. 2019
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 Kommentare
Aniket Kumar
Aniket Kumar am 7 Jun. 2019
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 am 7 Jun. 2019
You could use the randi function to generate random centerpoints and expand those to full patches.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by