title: matlab image: return pixel values along the boundingbox in an image?
body: <p>So, I have an RGB image and I've put a rectangle (boundingbox) around an area of the image. However, I can't get the pixel values along the perimeter of this rectangle. </p>
  
  <p>I've tried looking into the function <code>regionprops</code> but didn't find anything useful.</p>
  
  <p>I thought I could obtain pixel values from knowing the list of <code>(x,y)</code> points along the boundingbox ( <code>x_init</code>, <code>y_init</code>, <code>x_width</code>, <code>y_width</code>) but there's no specific function for that. Can anyone help?</p>