A new subpixel edge detection algorithm is presented with the complete theoretical system by conjoin/rig morphology, numerical analysing method with edge detection theory.The algorithm improves the performance of classical edge detection me- thods in filtering,edge locating and fitting method for precision and makes it practical in the accurately detecting field and some other fields.