              kernel = np.ones((dilation, dilation), np.uint8)
              mask = cv2.dilate(mask, kernel, iterations=1)
  
          return mask
  
  
  def get_align_mat(face, size, should_align_eyes):
      """ Return the alignment Matrix """
      logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
 
</s> remove     mat_umeyama = umeyama(np.array(face.landmarks_as_xy()[17:]),
 </s> add     logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
    mat_umeyama = umeyama(np.array(face.landmarks_as_xy[17:]),
 </s> remove         scale = size - 2*padding
 </s> add         logger.trace("aligned_landmarks_68: %s, size: %s, padding: %s, dilation: %s",
                     aligned_landmarks_68, size, padding, dilation)
        scale = size - 2 * padding

        logger.trace("Returning: %s", mask)

              kernel = np.ones((dilation, dilation), np.uint8)
              mask = cv2.dilate(mask, kernel, iterations=1)
  
        logger.trace("Returning: %s", mask)
          return mask
  
  
  def get_align_mat(face, size, should_align_eyes):
      """ Return the alignment Matrix """
      logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
keep keep add keep keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/aligner.py