class_docstr: Abstract decoder for :class:`~ffcv.fields.RGBImageField` that performs a crop and and a resize operation.
  
  It supports both variable and constant resolution datasets.
class_docstr_tok: ["Abstract","decoder","for",":","class",":","`","~ffcv.fields.RGBImageField","`","that","performs","a","crop","and","and","a","resize","operation",".","It","supports","both","variable","and","constant","resolution","datasets","."]
code: def __init__(self, output_size):
      super().__init__()
      self.output_size = output_size
  
imports: from abc import ABCMeta, abstractmethod
  from dataclasses import replace
  from typing import Optional, Callable, TYPE_CHECKING, Tuple, Type
  import cv2
  import numpy
  from numba.typed import Dict
  from PIL.Image import Image
  from .base import Field, ARG_TYPE
  from ..pipeline.operation import Operation
  from ..pipeline.state import State
  from ..pipeline.compiler import Compiler
  from ..pipeline.allocation_query import AllocationQuery
  from ..libffcv import imdecode, memcpy, resize_crop
label_desc: Use image node_id 1 to create a new ResizedCropRGBImageDecoder object from inherited base classes: SimpleRGBImageDecoder with example: obj = ResizedCropRGBImageDecoder(output_size)