Extracting random patches from a image
Show older comments
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 Comments
Rik
on 7 Jun 2019
What have you tried so far?
Aniket Kumar
on 7 Jun 2019
Rik
on 7 Jun 2019
You could use the randi function to generate random centerpoints and expand those to full patches.
Answers (0)
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!