Matlab code for extracting random subwindows/subimages

Click For Summary
SUMMARY

The discussion centers on extracting random subwindows of size 16x16 from image files using MATLAB for a project related to object recognition with decision trees. Users are encouraged to write their own MATLAB code for this task, as no pre-existing code is provided. A helpful resource is linked, detailing how MATLAB handles image data, which can be adapted to extract multiple subimages. The importance of understanding MATLAB's image processing capabilities is emphasized for successful implementation.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of image processing concepts
  • Knowledge of decision trees in machine learning
  • Basic understanding of pixel manipulation in images
NEXT STEPS
  • Research MATLAB's image processing toolbox for advanced techniques
  • Learn how to implement random sampling in MATLAB
  • Explore MATLAB functions for converting images to grayscale
  • Study decision tree algorithms for object recognition applications
USEFUL FOR

This discussion is beneficial for MATLAB programmers, image processing enthusiasts, and machine learning practitioners focused on object recognition tasks.

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 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K