title: How to Remap a YUY2 image?
body: <p>I have a distorted image in YUY2 data form, YUY2 comes under the family of YUV 4:2:2 (not 4:2:0).
  <a href="https://i.stack.imgur.com/6thtz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6thtz.png" alt="enter image description here" /></a></p>
  <p>And I have <code>mapx</code> and <code>mapy</code> (height-720, width-1280), which I obtained from</p>
  <pre><code>cv::fisheye::initUndistortRectifyMap(K, D, cv::Mat::eye(3, 3, CV_64F), new_K, Size, CV_32FC1, mapx, mapy);
  </code></pre>
  <p>How can I have undistorted YUY2?
  My final goal is to have undistorted YUY2 (not BGR).</p>
  <p>I thought to perform below steps:</p>
  <pre><code>cv::cvtColor(YUY, BGR, cv::COLOR_YUV2BGR_YUY2);
  \\ then perform remapping
  \\ and convert back to YUY
  </code></pre>
  <p>But there is no conversion from BGR2YUY_YUY2.</p>
  <p>Is there is any smarter way?</p>