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

[MatLab] Image Processing

  1. Jan 23, 2012 #1

    I have an image (attached) I have to use as a reference.
    To be clear I have to use this grid as calibration for an acquisition sistem.

    I want to get the grid of this image and superimpose it on other images.
    Is it possible? how to do it?


    Attached Files:

  2. jcsd
  3. Jan 24, 2012 #2
    I managed to get the central pixel coordinates [X0,Y0] (using ginput) and the distance between two points (using imdistline).
    I have converted the image in a gray scale using im2double and I want to change pixel value in the first quadrant. (image is almost black)
    I mean I would like to set as white each pixel of every rows between 1 and Y0 with step equal to the distance calculated above and do the same for the column between X0 and 821.
    How to do that?
    (the image size is 577X821X3 double and MatLab says that 821 index exceeds matrix dimensions)
  4. Feb 8, 2012 #3
    Hi ,

    I am a biology major grad student and I am looking a Chroma-Keying matlab code for removing a green background color and replacing with another image? anybody with the code please share. Thank you so much.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook