Electron microscopy
 
Locate the Center of a Bright (Maximum/Highest Intensity) Spot in an Image
& Find the Nearest White Pixel to a Given Pixel Location on an Binary Image
- Python for Integrated Circuits -
- An Online Book -
Python for Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

Find the coordinates of the centers of the bright spots in an image: code:
          Print even numbers
Input:          
          Print even numbers
Output:          
          Print even numbers
          Print even numbers

============================================

Find the coordinates of the center of a bright spot on the image: code:
          Print even numbers
Input:          
          Print even numbers
Output (note: the spot deviates slightly from the center of the spot since the spot is calculated by mean):          
          Print even numbers
          Print even numbers

============================================

Move the cursor/mouse to the found, similar spots one-by-one (.moveTo() below is to move the cursor to the center of the feature, which is obtained by the calculation): code:          
          Move the cursor/mouse to the found, similar spots one-by-one
Input:         
         
          Move the cursor/mouse to the found, similar spots one-by-one
Output (all the other dots were clicked except the one circled in red):         
          Move the cursor/mouse to the found, similar spots one-by-one

============================================

Find nearest white pixel to a given pixel location on an binary image. code:          
         Print even numbers
Input:         
         
          Move the cursor/mouse to the found, similar spots one-by-one
Output (all the other dots were clicked except the one circled in red):         
         Print even numbers

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================