Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab code for extracting random subwindows/subimages

  1. Jul 8, 2009 #1
    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.
     
  2. jcsd
  3. Jul 11, 2009 #2

    MATLABdude

    User Avatar
    Science Advisor

    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 [Broken]

    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: May 4, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Matlab code for extracting random subwindows/subimages
  1. Matlab data extracting (Replies: 6)

  2. Matlab codes (Replies: 2)

  3. Matlab code (Replies: 0)

Loading...