MATLAB Matlab code for extracting random subwindows/subimages

AI Thread Summary
The discussion focuses on the need for MATLAB code to extract random 16x16 subwindows from images for a project on object recognition using decision trees. Participants note the lack of readily available code and suggest that the user may need to write their own. A recommendation is made to consult MATLAB documentation for guidance on handling image data, specifically on extracting pixel information. The linked resource provides a foundational example that can be adapted for extracting larger subimages. Overall, the emphasis is on the necessity of coding skills to achieve the desired functionality in MATLAB.
amus
Messages
1
Reaction score
0
hi,

I am doing project related to object recognition using decision trees and random subwindows.For which i nee d MATLAB code for extracting random subwindows/subimages(size is 16x16) from the image files and after that i need to get the gray values of the subimages.
 
Physics news on Phys.org
Welcome to PhysicsForums!

I can't supply that code mostly because I don't have any, nor have I done much image processing in the MATLAB environment. I suspect that, for what you're doing, you're going to need to write some code. (i.e. no free lunch, but you never know what the Google is able to turn up)

If you're just starting out, I recommend looking at the following MATLAB page to see how MATLAB deals with image data:
http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f2-145.html

The page I linked to gives an example of how to extract one pixel from a raster image, you should be able to extend this to randomly extract 16x16 pixels out of your image.
 
Last edited by a moderator:

Similar threads

Replies
2
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
Replies
6
Views
4K
Replies
7
Views
8K
Back
Top