In edge detection basically only the mask and normalizing factor will change with different edge detection algorithm .
so i was thinking that we can redefine these function for edge detection in which we take algorithm name with user input and then according to that we can use different filter  .