- #1
miyakooo
- 1
- 0
Hi, y'all!
I'm trying to figure out how to do this MATLAB project for school.
We're required to read in an image and then sample random regions(square, matrix-shaped) of it.
I read in the image and it is formed by a lot of numbers(pixels?), and I determined how to generate a random integer that will index to a random point of the image. I know I am supposed to generate a matrix with the random point in its center, but I am clueless as to how to generate a e matrix-shaped region of an image with a designated center...any ideas? Help me please!
Thanks:)
Miyakooo
I'm trying to figure out how to do this MATLAB project for school.
We're required to read in an image and then sample random regions(square, matrix-shaped) of it.
I read in the image and it is formed by a lot of numbers(pixels?), and I determined how to generate a random integer that will index to a random point of the image. I know I am supposed to generate a matrix with the random point in its center, but I am clueless as to how to generate a e matrix-shaped region of an image with a designated center...any ideas? Help me please!
Thanks:)
Miyakooo