You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
might be far too late to answer this but i hope this will be beneficial for future readers hahah.
Was wondering the same, but upon inspecting jpeg2dct, the default behaviour is when converting an image into DCT, the Y channel has 2 times the width and height of the Cr and CB channels. We want them all to have the same sizes so we do separate calculations, one with the original image size to get the Y channel DCT, and the other with twice the original image size to get the Cr and Cb channel of the DCT, which because of the 2x resize, has the width and height of the Cr and Cb DCT result the same as the Y DCT result. Then we can easily "resize" them and concat them together
class Upscale(object):
def init(self, upscale_factor=2, interpolation='BILINEAR'):
self.upscale_factor = upscale_factor
self.interpolation = interpolation
The text was updated successfully, but these errors were encountered: