Extracting random patches from a image
3 views (last 30 days)
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
You could use the randi function to generate random centerpoints and expand those to full patches.
Answers (0)
See Also
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!