# toImageFilter method

ImageFilterType toImageFilter()

## Implementation

    ImageFilterType toImageFilter() {
      switch (this) {
        case LegacyBinarizationFilter.BINARIZED:
          return ImageFilterType.BINARIZED;
        case LegacyBinarizationFilter.PURE_BINARIZED:
          return ImageFilterType.PURE_BINARIZED;
        case LegacyBinarizationFilter.OTSU_BINARIZATION:
          return ImageFilterType.OTSU_BINARIZATION;
        case LegacyBinarizationFilter.DEEP_BINARIZATION:
          return ImageFilterType.DEEP_BINARIZATION;
        case LegacyBinarizationFilter.LOW_LIGHT_BINARIZATION:
          return ImageFilterType.LOW_LIGHT_BINARIZATION;
        case LegacyBinarizationFilter.LOW_LIGHT_BINARIZATION_2:
          return ImageFilterType.LOW_LIGHT_BINARIZATION_2;
        case LegacyBinarizationFilter.SENSITIVE_BINARIZATION:
          return ImageFilterType.SENSITIVE_BINARIZATION;
      }
    }