Add mask registration

To test the necessity of all the contour without mask