title: Aforge get blobs from one image and extract same location from other
body: <p>I have an image that I do some processing to in order to separate the background from the foreground, creating a binary (black/white) image.  </p>
  
  <p>Using AForge, I am able to detect all blobs from the processed image, and return them.</p>
  
  <p>So, I take my original image, copy it to "SourceImg", do some filtering to separate the background and make it a binary image, and then I can do the blob extraction properly.</p>
  
  <pre><code>    public static List&lt;Bitmap&gt; ApplyBlobExtractor(Bitmap SourceImg)
      {
          List&lt;Bitmap&gt; ImgLetters = new List&lt;Bitmap&gt;();
          AForge.Imaging.BlobCounter blobCounter = new AForge.Imaging.BlobCounter();
  
          // Sort order
          blobCounter.ObjectsOrder = AForge.Imaging.ObjectsOrder.XY;
          blobCounter.ProcessImage(SourceImg);
          AForge.Imaging.Blob[] blobs = blobCounter.GetObjects(SourceImg, false);
  
          // Adding images into the image list            
          AForge.Imaging.UnmanagedImage currentImg;
          foreach (AForge.Imaging.Blob blob in blobs)
          {
              currentImg = blob.Image;
              ImgLetters.Add(currentImg.ToManagedImage());
          }
          return ImgLetters;
      }
  </code></pre>
  
  <p>What I really want to do is use those blobs' information to extract the locations from the original, unprocessed image.  </p>
  
  <p>Ideally, I want to use the blob like a cookie cutter and grab extract them from my initial unprocessed image file.</p>