Implemented reclassification of ambiguous pixels (didn't work as intended).