          face = self._faces_at_frame_index(frame_index)[face_index]
          rot_mat = cv2.getRotationMatrix2D(tuple(center.astype("float32")), angle, 1.)
          face.landmarks_xy = cv2.transform(np.expand_dims(face.landmarks_xy, axis=0),
                                            rot_mat).squeeze()
          face.mask = self._extractor.get_masks(frame_index, face_index)
          self._globals.tk_update.set(True)
  
      def landmarks_scale(self, frame_index, face_index, scale, center):
          """ Scale the landmarks on an Extract Box resize for the
          :class:`~lib.align.DetectedFace` object at the given frame and face indices from the
 
</s> remove         face.mask = self._extractor.get_masks(frame_index, face_index)
 </s> add  </s> remove         face.mask = self._extractor.get_masks(frame_index, face_index)
 </s> add  </s> remove         face.mask = self._extractor.get_masks(frame_index, face_index)
 </s> add  </s> remove         """ Update the jpg thumbnail and the viewport thumbnail on a face edit.
 </s> add         """ Update the jpg thumbnail, the viewport thumbnail, the landmark masks and the aligned
        face on a face edit.
          face = self._faces_at_frame_index(frame_index)[face_index]
          rot_mat = cv2.getRotationMatrix2D(tuple(center.astype("float32")), angle, 1.)
          face.landmarks_xy = cv2.transform(np.expand_dims(face.landmarks_xy, axis=0),
                                            rot_mat).squeeze()

          self._globals.tk_update.set(True)
  
      def landmarks_scale(self, frame_index, face_index, scale, center):
          """ Scale the landmarks on an Extract Box resize for the
          :class:`~lib.align.DetectedFace` object at the given frame and face indices from the
keep keep keep keep replace keep keep keep keep keep
 Add Misalignment Detection
  - lib.align.AlignedFace - Add average_distance property (distance from mean_face)
  - tools.manual - Add misaligned Faces filter
  - tools.sort - Add sort by distance (misaligned sort)Add "Misaligned Faces" filter to manual tool 
tools/manual/detected_faces.py