Tiled rotate with smoothing has bad edges

Tiled rotate with smoothing has bad edges

Hi,

ippiRotate gives me different results with single image rotation and tiled one. Tiled result has some artifacts on the edges.

Here is my code:

// Rotate on single image
{
  IppiRect dstBounds = {0, 0, pResult->GetWidth(), pResult->GetHeight()};
  IppStatus res = ippiRotate_8u_C3R(pSrcPixels, srcSize, stripe.GetStride(), srcBounds, pDstPixels, pResult->GetStride(), dstBounds, _angle, _xShift, _yShift, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE);

  if (res < ippStsNoErr)
    EX_THROW(IppException(EX_PARAMS, res));
}

// Rotate on tiled image
{

  uint32_t tileSize = 15;

  uint32_t tileCountX = 15;

  uint32_t tileCountY = 15;

  for (uint32_t i = 0; i < tileCountY; i++)
  {
    for (uint32_t j = 0; j < tileCountX; j++)
      {
        IppiRect dstBounds = {i * tileSize, j * tileSize, tileSize, tileSize};

        IppStatus res = ippiRotate_8u_C3R(pSrcPixels, srcSize, stripe.GetStride(), srcBounds, pDstPixels, pResult->GetStride(), dstBounds, _angle, _xShift, _yShift, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE);

        if (res < ippStsNoErr)
            EX_THROW(IppException(EX_PARAMS, res));
      }
  }
}

Without IPPI_SMOOTH_EDGE both results are equal.

Please correct me if I’m doing something wrong.

Best regards,
Evgeniy Kosmin

Fichier attachéTaille
Télécharger single.png113.94 Ko
Télécharger tiled.png82.35 Ko
3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Hi Evgeniy,

Some time ago we had a discussion ( please take a look ):

Forum Topic: ippiRotate edge effects
Web-link: software.intel.com/en-us/forums/topic/344452

and it looks like your problem is similar. Unfortunately, I don't know anything about status of the problem ( is it fixed? is it reproduced? ) and I expect Intel Software Engineers should provide more technical details.

Best regards,
Sergey

Portrait de wnag y.

Gatwick is an excellent area with regard to leasing work place within Tube Ends, Birmingham isn't any lengthier the actual centre from the UNITED KINGDOM because of costly lease and purchasing expenses as well as severe blockage which means the actual transportation systems tend to be match in order to burst open and therefore are battling to handle the present occupants not to mention brand new Safety Handle companies. Leasing work place provides a less dangerous option to the actual large pounds of the long-term home loan.

Website:http://www.uch-conveyor.com

Connectez-vous pour laisser un commentaire.