Results of the simulation experiment reveal that the method is capable of accurate segmentation under ideal scanning condition. Testing of different PCBs and comparison of different segmentation methods authenticate the applicability and superiority of the model.