title: Distance between two pixels but belonging to different sets
body: <p>How can I find the <code>distance</code> between two pixels belonging to two different sets? I think <code>pdist</code> does that but for a single object?</p>
  
  <p>Thanks.</p>