MATHEMATICAL MORPHOLOGY IN ATR ALGORITHM DEVELOPMENT