Added imReasampleMex and changed Detector class strucuture a bit