title: Extract pixels within given cordinates
body: <p>I'm new to image processing and development. I have pixel coordinates of an image. By connecting each coordinate can be obtained a triangle. I want to extract pixels inside pixels of giving coordinates (pixels within a triangle)</p>
  
  <p>Cordinates as follows.</p>
  
  <pre><code>1(x,y) -&gt; (146 , 548)
  2(x,y) -&gt; (155, 548)
  3(x,y) -&gt; (149.6 , 558.1)
  </code></pre>
  
  <p>How do i take pixels that are inbound of above coordinates. Any help is appreciated. Thank you. </p>