1 | initial version |
Each pixel in warped image should be calculated from one or more pixels of original image. Usually using more than one pixel give best result and this is default option for warpAffine (bilinear interpolation). But sometimes we may need that warped image will have only colors of original image, i.e. each new pixel should get its value from exactly one pixel of original image. Is this what you meant by "without interpolation"? If yes, you can use INTER_NEAREST flag. By the way, this is also the fastest way to perform warping because it needs less calculations.