How to avoid Matrix index exceed Error.
1 view (last 30 days)
Hello, I am extracting patches from image. Each patch size is 64 by 64. When i extract patch from object at corner then i got error "Index exceeds matrix dimensions" . .it is because the patch size goes out of image boundary. so i want to avoid it. How to do this matlab. The image is also attached here. in image i want to extract patch around yellow objects.