How to write the code to apply the formula to the image and the result is low-pass filtered. The red region is the highest intensity which corresponds to the barcode.
Formula:
Original image:
Processed Image:
edited How to plotting the points??
edited Plotting the Points:
See Question&Answers more detail:os