Detecting a position of a sheet of light in an image
First Claim
1. A method for detecting a position of a sheet of light in an image, the method comprising:
- receiving an image of the sheet of light as projected onto an object, the image comprising a line of pixels with an associated intensity profile;
setting a size S of a derivative filter to be at least as large as a width W of a widest peak to be detected in the intensity profile;
determining a region of interest for detection by locating intensity differences in the intensity profile that are at least as large as a threshold value;
applying the derivative filter of size S to the intensity profile to obtain a slope of the intensity profile;
detecting one or more zero-crossings in the slope of the intensity profile inside the region of interest, each one of the one or more detected zero-crossings having a corresponding pixel position in the intensity profile;
selecting a zero-crossing from the one or more detected zero-crossings; and
outputting the corresponding pixel position of the selected zero-crossing as the detected position of the sheet of light for the line of pixels.
1 Assignment
0 Petitions
Accused Products
Abstract
In a method and system for detecting a position of a sheet of light in an image, two parameters are used, namely the width of the widest peak to be detected and the intensity difference of the least-contrasted peak to be detected. From these two parameters, a size S, a distance D, and a threshold T are determined. A region of interest (ROI) is determined based on the intensity profile associated with a line of pixels of the image, distance D and threshold T. A derivative filter of size S is applied to the intensity profile to produce a slope of the intensity profile. In the determined ROI, one or more zero-crossings in the slope of the intensity profile are detected. From the detected zero-crossings, a zero-crossing is selected and the position of the selected zero-crossing is returned as the detected position of the sheet of light for the line of pixels.
34 Citations
26 Claims
-
1. A method for detecting a position of a sheet of light in an image, the method comprising:
-
receiving an image of the sheet of light as projected onto an object, the image comprising a line of pixels with an associated intensity profile; setting a size S of a derivative filter to be at least as large as a width W of a widest peak to be detected in the intensity profile; determining a region of interest for detection by locating intensity differences in the intensity profile that are at least as large as a threshold value; applying the derivative filter of size S to the intensity profile to obtain a slope of the intensity profile; detecting one or more zero-crossings in the slope of the intensity profile inside the region of interest, each one of the one or more detected zero-crossings having a corresponding pixel position in the intensity profile; selecting a zero-crossing from the one or more detected zero-crossings; and outputting the corresponding pixel position of the selected zero-crossing as the detected position of the sheet of light for the line of pixels. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A field-programmable gate array (FPGA) configured for detecting a position of a sheet of light in an image, the FPGA having logic programmed for:
-
receiving an image of the sheet of light as projected onto an object, the image comprising a line of pixels with an associated intensity profile; setting a size S of a derivative filter to be at least as large as a width W of a widest peak to be detected in the intensity profile; determining a region of interest for detection by locating intensity differences in the intensity profile that are at least as large as a threshold value; applying the derivative filter of size S to the intensity profile to obtain a slope of the intensity profile; detecting one or more zero-crossings in the slope of the intensity profile inside the region of interest, each one of the one or more detected zero-crossings having a corresponding pixel position in the intensity profile; selecting a zero-crossing from the one or more detected zero-crossings; and outputting the corresponding pixel position of the selected zero-crossing as the detected position of the sheet of light for the line of pixels. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A system for detecting a position of a sheet of light in an image, the system comprising:
-
a memory; a processor coupled to the memory; and an application stored in the memory and executable by the processor for; receiving an image of the sheet of light as projected onto an object, the image comprising a line of pixels with an associated intensity profile; setting a size S of a derivative filter to be at least as large as a width W of a widest peak to be detected in the intensity profile; determining a region of interest for detection by locating intensity differences in the intensity profile that are at least as large as a threshold value; applying the derivative filter of size S to the intensity profile to obtain a slope of the intensity profile; detecting one or more zero-crossings in the slope of the intensity profile inside the region of interest, each one of the one or more detected zero-crossings having a corresponding pixel position in the intensity profile; selecting a zero-crossing from the one or more detected zero-crossings; and outputting the corresponding pixel position of the selected zero-crossing as the detected position of the sheet of light for the line of pixels.
-
-
26. A non-transitory computer readable medium having stored thereon program code for execution by a processor for detecting a position of a sheet of light in an image, the program code comprising instructions for:
-
receiving an image of the sheet of light as projected onto an object, the image comprising a line of pixels with an associated intensity profile; setting a size S of a derivative filter to be at least as large as a width W of a widest peak to be detected in the intensity profile; determining a region of interest for detection by locating intensity differences in the intensity profile that are at least as large as a threshold value; applying the derivative filter of size S to the intensity profile to obtain a slope of the intensity profile; detecting one or more zero-crossings in the slope of the intensity profile inside the region of interest, each one of the one or more detected zero-crossings having a corresponding pixel position in the intensity profile; selecting a zero-crossing from the one or more detected zero-crossings; and outputting the corresponding pixel position of the selected zero-crossing as the detected position of the sheet of light for the line of pixels.
-
Specification