Answers.Body: <p>Assuming that the image is blank everywhere but where the face is drawn...</p>
  <p>The first step is to scale the image to the mask.  That doesn't require a detailed explanation here as it is too trivial a problem.</p>
  <p>Second, rotate the image by 90 degrees three times and save each one.</p>
  <p>Third, for the four versions of the image (the original and three rotations), do the image addition.  The only one with information will be the one that is rotationally aligned with the mask.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-10T17:09:27.140Z
Answers.LastActivityDate: 2021-01-10T17:09:27.140Z
Answers.UserDisplayName: Brian O'Donnell
Body: <p>I have an image and a mask. I want the image to be the same, but rotated, scaled and positioned like mask. What can I use?<a href="https://i.sstatic.net/z3kSl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/z3kSl.png" alt="enter image description here" /></a></p>
  
Tags: <image-processing><image-generation>
Title: What algorithm would you advise me to use for my task?
UserDisplayName: Colab Colab
ThreadText: # What algorithm would you advise me to use for my task?
  
  (Asked by: username_0 on 2021-01-10)
  
  I have an image and a mask. I want the image to be the same, but rotated, scaled and positioned like mask. What can I use?[![enter image description here](https://i.sstatic.net/z3kSl.png)](https://i.sstatic.net/z3kSl.png)
  
  **Tags:** image-processing, image-generation
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-01-10. Score: 1
  
  Assuming that the image is blank everywhere but where the face is drawn...
  
  The first step is to scale the image to the mask. That doesn't require a detailed explanation here as it is too trivial a problem.
  
  Second, rotate the image by 90 degrees three times and save each one.
  
  Third, for the four versions of the image (the original and three rotations), do the image addition. The only one with information will be the one that is rotationally aligned with the mask.
  
  
  ---
  
  