import com.graphics3d.book.image.JImage;

public interface MatchQualityFunction {

    /**
       Given a goal image and a proposed matching image, returns a
       number between 0 (bad) and 1 (perfect) indicating how well the
       proposal matches the goal.  

       The matcher is only applied within regions where mask is true.
    */
    public float matchQuality(JImage goal, JImage proposal, boolean mask[]);
}
