Fix a calculation issue and a position issue
Update demo
Implement squeeze mode for edge detection