updated FilterType to line up with the C version and tested that resize work with filtertype == 0