Abstract:
A 3D scanner system includes a scanning device capable of recording first and second data sets of a surface of an object when operating in a first configuration and a second configuration, respectively. A measurement unit is configured for measuring a distance from the scanning device to the surface. A control controls an operation of the scanning device based on the distance measured by the measurement unit, where the scanning device operates in the first configuration when the measured distance is within a first range of distances from the surface and the scanning device operates in the second configuration when the measured distance is within a second range of distances; and a data processor is configured to combine one or more first data sets and one or more second data sets to create a combined virtual 3D model of the object surface.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation of U.S. Pat. No. 14/124,175, filed on Mar. 5, 2014, and which is a national stage application of PCT/EP2012/06074, filed on Jun. 6, 2012, and which claims the benefit of U.S. 61/494,291, filed on Jun. 7, 2011, and claims the priority of Danish Patent Application PA 2011 00426, filed on Jun. 6, 2011. The contents of U.S. 14/124,175; PCT/EP2012/060741; U.S. 61/494,281; and Danish Patent Application PA 2011 00426 are incorporated, herein by reference. 
     
    
     FIELD OF THE INVENTION 
       [0002]    This disclosure generally relates to an integrated 3D scanner which is capable of operating in two configurations, where each configuration is capable of providing a data set relating to the surface of an object. The spatial resolution of the data set provided by a second configuration is higher than that provided by a first configuration. 
         [0003]    The integrated 3D scanner is hence a dual-resolution 3D scanner capable of acquiring data relating to the surface of an object at two spatial resolutions and the integrated 3D scanner may also be referred to as a dual-resolution 3D scanner. 
       BACKGROUND 
       [0004]    Many high-resolution scanning device configurations which are capable of providing high spatial resolution data relating to e.g. the surface of an object are only capable of viewing a limited region of the surface. 
         [0005]    When scanning an object where a first structure and a second structure on the surface are separated by a distance which is larger than the area viewed by such a high-resolution scanning device configuration, there may occur errors in the relative position of individual data sets and offset errors may occur e.g. when combining the data sets. This is especially true when the surface does not provide any structure between the first and second structures which otherwise could be used as landmarks. 
         [0006]    For such applications, the integrated 3D scanner of the present disclosure has an advantage over prior art 3D scanners. 
       SUMMARY 
       [0007]    Disclosed is an integrated 3D scanner for scanning a surface of an object, said integrated 3D scanner comprising:
       a scanning device capable of operating in a first configuration and in a second configuration, where
           in said first configuration the scanning device is capable of acquiring a first data set relating to the surface of the object; and   in said second configuration the scanning device is capable of acquiring a second data set relating to the surface of the object; and   
           a data processing unit configured for combining one or more first data sets and one or more second data sets to provide a combined data set;       
 
         [0012]    where the first and second configurations of the scanning device are such that the second data set represents data with a higher spatial resolution than the first data set. 
         [0013]    One advantage of the dual-resolution scheme provided by the two configurations of the scanning device may be that when scanning e.g. a surface wherein the interesting structures of the surface are separated by significant distances, the integrated 3D scanner may allow a user to obtain high-resolution data relating to these structures using the scanning device in the second configuration, while the first configuration may provide low-resolution data relating to the surface between the structures. A combined data set with such low-resolution data and such high-resolution data may then provide high-resolution data at the structures where this is advantageous while between these structures, the object is represented by low-resolution data. Thereby the requirements to, the integrated 3D scanner and/or the scanner system comprising the integrated 3D scanner with respect to calculation power and memory size may be reduced. 
         [0014]    The dual-resolution scheme provided by the two configurations of the scanning device may also be advantageous in relative to the accuracy of the data acquired from the surface of an object. In some scanning techniques a combination of small area data sets each relating to a relatively smaller area provides one large-area data set relating to relative a larger area of the surface. In such scanning techniques, the accumulation of errors in the relative positions of the small-area data sets in the “large area” data set may become significant. Structures in the surface of the object is often used for ensuring that the relative positions of the small-area data sets is correct, but in cases where the surface lacks such structures in some regions, a significant uncertainty in the positions of the individual small-area data sets occur and when scanning across such a surface, the accumulated inaccuracy may become significant. One advantage of the two configurations provided by the integrated 3D scanner is that the first configuration may be adapted to acquire data relating to a large area of the surface thus potentially covering at least two neighboring structures at all times during the scanning. The spatial resolution provided of the first configuration of the scanning device is not as high as the spatial resolution provided by the second configuration, but when the acquired first data sets can be combined without any stitching errors, the overall result obtained by the combined data set may still provide a more precise information of the relative positions of different structures on the surface of an object. The integrated 3D scanner according to the present disclosure may thus provide high-resolution data relating to different structures on a surface while still have a relatively precise locating of the structures relative to each other. 
         [0015]    In the context of the present disclosure, the phrase “the first and second configurations of the scanning device are such that the second data set represents data with a higher spatial resolution than the first data set” may refer to the case where the second configuration is capable of providing a virtual 3D representation of the surface of an object with a higher spatial resolution than what can be obtained using the first configuration of the scanning device. 
         [0016]    For an integrated 3D scanner where the scanning device in the first configuration is capable of receiving and detecting a first spatial distribution of electromagnetic signals from a first focal plane, and in the second configuration is capable of receiving and detecting a second spatial distribution of electromagnetic signals from a second focal plane, the second data set represents data with a higher spatial resolution than the first data set when the spatial resolution of the second spatial distribution is higher than the spatial resolution of the first spatial distribution. 
         [0017]    In some embodiments, the higher spatial resolution relates at least to a higher lateral spatial resolution, i.e. the spatial resolution provided by the scanning device in a plane substantially perpendicular to an optical axis of the scanning device. The optical axis may be substantially identical to the line of sight from a volume from which the integrated 3D scanner can acquire data sets to the integrated 3D scanner. i.e. in some embodiments, the first and second configurations of the scanning device are such that second data set represents data with a higher transverse spatial resolution than the first data set. 
         [0018]    In some embodiments, the higher spatial resolution, relates to said higher lateral spatial resolution and to a higher resolution along the optical axis of the scanner device. 
         [0019]    According to one object of the disclosure is disclosed is an integrated 3D scanner for scanning a surface of an object, said integrated 3D scanner comprising:
       a scanning device capable of operating in a first configuration and in a second configuration, where
           in said first configuration the scanning device is capable of acquiring a first data set relating to the surface of the object; and   in said second configuration the scanning device is capable of acquiring a second data set relating to the surface of the object; and   
           a data processing unit configured for combining one or more first data sets and one or more second data sets to provide a combined data set;       
 
         [0024]    where the first and second configurations of the scanning device are such that the second data set represents data with a higher spatial resolution than the first data set. 
         [0025]    Disclosed is an integrated 3D scanner for scanning, a surface of an object, integrated 3D scanner comprising:
       a scanning device capable of operating in a first configuration and in second configuration, where
           in said first configuration the scanning device is capable of acquiring a first data set relating to the surface of the object; and   in said second configuration the scanning device is, capable of acquiring a second data set relating to the surface of the object; and   
           a data processing unit configured for combining one or more first data sets and one or more second data sets to provide a combined data set;       
 
         [0030]    where the first configuration has a larger field of view than the second configuration. 
         [0031]    Disclosed is an integrated 3D scanner for scanning a surface of an object, said integrated 3D scanner comprising:
       a scanning device capable of operating in a first configuration and in second configuration, where
           in said first configuration the scanning device is capable of receiving and detecting a first spatial distribution of electromagnetic signals from a first focal plane with a first spatial resolution, and translating the first focal plane relative to the integrated 3D scanner such that a number of first spatial distributions can be received, and forming a first data set from the number of received first spatial distributions of electromagnetic signals; and   in said second configuration the scanning device is capable of receiving and detecting a second spatial distribution of electromagnetic signals from a second focal plane with a second spatial resolution, and translating the second focal plane relative to the integrated 3D scanner such that a number of second spatial distributions can be received, and forming a second data set from the number of received second spatial distributions of electromagnetic signals;   
           a data processing unit configured for combining one or more first data sets and one or more second data sets to provide a combined data set;       
 
         [0036]    where the second spatial resolution is higher than the first spatial resolution. 
         [0037]    The first and second spatial distributions may relate to partially identical portions of the surface for a certain distance between the scanning device and the surface of the object. 
         [0038]    Disclosed is a scanner system for scanning a surface of an object, where the system comprises the integrated 3D scanner according to the present disclosure. 
         [0039]    Disclosed is a method for scanning a surface of an object, wherein said method comprises:
       obtaining an integrated 3D scanner according to the present disclosure;   arranging the integrated 3D scanner in relation to the object, such that electromagnetic signals from the object surface can be received by the scanning device of the integrated 3D scanner;   acquiring at least one first data set and at least one second data set relating to the object surface with the scanning device operating in the first and second configuration, respectively; and   combining the at least one first data set an the at least one second data set to provide a combined data set.       
 
         [0044]    In some embodiments, the scanning device is capable of acquiring number of first data sets when operated in the first configuration. 
         [0045]    In some embodiments, the scanning device is capable of acquiring a number of second data sets when operated in the second configuration. This may be advantageous when several second data sets must be acquired for a structure on the surface and when a large surface is to be, scanned where a number of structures are distributed over the surface with some distance between the structures. The number of second data sets can then be acquired and combined with the first data set to provide a combined data set in which the structures are imaged at high spatial resolution. 
         [0046]    There may be distances from the object surface at which the configurations of the scanner device are not capable of acquiring data sets of the surface, i.e. where the scanner device cannot acquire data sets from which geometrical information relating to the surface can be derived. 
         [0047]    In some embodiments, the configurations of the scanning device are capable of acquiring data sets when arranged in a range of positions relative to the surface, i.e. where the scanner device can acquire data sets from which geometrical information relating to the surface can be derived. 
         [0048]    In some embodiments, the first configuration of the scanning device is capable of acquiring first data sets from surfaces which are arranged in a first range of distances from the integrated 3D scanner. I.e. the scanning device is capable of acquiring first data sets when the integrated 3D scanner is arranged at a distance within the first range of distances from the surface of an object. 
         [0049]    In some embodiments, the second configuration of the scanning device is capable of acquiring second data sets from surfaces which are arranged in a second range of distances from the integrated 3D scanner. I.e. the scanning device is capable of acquiring second data sets when the integrated 3D scanner is arranged at a distance within the second range of distances from the surface of an object. 
         [0050]    In some embodiments, the first configuration of the scanning device is such that the scanning device is capable of acquiring one or more first data sets of the object surface when the integrated 3D scanner arranged at a first distance from the object, where said first distance may be within first range of distances. 
         [0051]    In some embodiments, the second configuration of the scanning device is such that the scanning device is capable of acquiring one or more second data sets of the object surface when the integrated 3D scanner is arranged at a second distance from the object, where said second distance may be within second range of distances. 
         [0052]    In the context of the present disclosure, the distance may be defined as the distance from the integrated 3D scanner to a point on the surface which is at or near the center of the area of the surface from which the scanning device receives electromagnetic signals. 
         [0053]    The first range of distances range may correspond to positions of the integrated 3D scanner relative to the surface where the surface is within the depth-of-field for the scanning device in the first configuration. 
         [0054]    The second range of distances range may correspond to positions of the integrated 3D scanner relative to the surface where the surface is within the depth-of-field for the scanning device in the second configuration. 
         [0055]    The first and/or the second range of distances may be such that the scanner device in the first and/or second configuration is capable of acquiring data sets from the surface also when the integrated 3D scanner is substantially at the surface of the object. 
         [0056]    The scanning device may be such that, a gap must be present between the surface of the object and the integrated 3D scanner in order for the scanning device to be able to acquire data sets relating to the surface. 
         [0057]    In the context of the present disclosure, the phrase “the scanning device is capable of acquiring a data set” may refer to the situation where the electromagnetic signals captured by the scanning device can be used for generating a 2D or 3D image in which structures of a surface of an object can be distinguished. This is e.g. the case when distance between the integrated 3D scanner and an object surface is such that the object surface is arranged at the focal plane of the scanner device in the given configuration. When this is the case, the first or second data set can be used for providing a 2D image or a virtual 3D representation of the object surface in which individual structures of the surface can be recognized. 
         [0058]    The phrase “capable of acquiring a data set” may be used when at least one requirement to how an acquired data set presents the surface of an object is fulfilled. The requirement may relate to how clearly different structures of the surface can be identified in the data set. For example, when the data set relates to an image of the surface, the requirement may relate to the sharpness of the image, such that e.g. a maximum blurring of the structures are allowed. In other cases, knowledge of the fine structure of the surface is not important and the requirement may relate to other parameters. 
         [0059]    In the context of the present disclosure, a configuration of the scanner device may be said to be capable of acquiring a data set when it is capable of capturing a data set from which geometrical information about the object surface can be derived. 
         [0060]    In some embodiments, the first configuration of the scanning device is such that when an object surface is arranged outside a first range of distances, the first configuration of the scanning device is not capable of acquiring a first data set which provides valuable information relating to the surface when arranged outside this first range of distances. 
         [0061]    In some embodiments, the second configuration of the scanning device is such that when an object surface is arranged outside a second range of distances, the second configuration of the scanning device is not capable of acquiring a second data set which provides valuable information relating to the surface when arranged outside this second range of distances. 
         [0062]    In the context of the present disclosure, “the phrase the scanning device is not capable of acquiring” may refer to the situation where electromagnetic signals received and detected by the scanning device cannot be used to provide a useful representation of the surface of an object, such as when the first or second data set cannot provide an image in which individual structures of the surface can be recognized and the scanner device cannot acquire data sets which provide valuable information relating to the surface. 
         [0063]    In some embodiments, the first configuration of the scanning device comprises a first sensor element for capturing electromagnetic radiation from the object surface and a data processor unit comprising computer code for generating said first data set from said captured electromagnetic radiation such that said first data set can be acquired by the scanning device in the first configuration. 
         [0064]    In some embodiments, the second configuration of the scanning device comprises a second sensor element capturing electromagnetic radiation from the object surface and a data processor unit comprising computer code for generating said second data set from said captured electromagnetic radiation such that said second data set can be acquired by the scanning device in the second configuration. 
         [0065]    The data processor unit comprising computer, code for generating the first and second data sets may be the same data processor unit which combines the acquired first and second data sets. 
         [0066]    In some embodiments, the integrated 3D scanner comprises a control unit configured for controlling the operation of the scanning device, such as for automatically controlling the operation. 
         [0067]    In some embodiments, the control device is adapted to allow a user to manually provide information to the scanning device relating to which configuration the scanning device shall operate in. This information may be provided e.g. by pressing a button. 
         [0068]    The control unit may be part of the scanning device, such that in some embodiments, the scanning device comprises a control unit configured for controlling the operation of the scanning device, such as for automatically controlling the operation. 
         [0069]    The control unit may be configured for automatically controlling the acquiring of one or more data sets in at least one of the configurations of the scanning device. 
         [0070]    In some embodiments, the control unit is capable of automatically changing the operation of the scanning device between the first configuration and the second configuration. 
         [0071]    In some embodiments, the scanning device is capable of operating simultaneously in the first and second configurations. In such an embodiment, the control unit may be configured for automatically changing between operating the scanning device in the first and second configurations simultaneously and operating the scanning device in only one of the first or second configurations. When operating the scanning device in the first, and second configurations simultaneously, the first and second data sets can be acquired simultaneously. 
         [0072]    The simultaneous operation may relate to a simultaneous acquisition of data sets and to a simultaneous combination of the acquired data sets. 
         [0073]    In some embodiments, the control unit is configured to provide that the operation of the scanning device in both the first and second configurations is started and stopped substantially at the same time. 
         [0074]    In some embodiments, the control unit is configured to provide that the scanning device is operated continuously in the first configuration and/or in the second configuration, such that first and/or second data sets are acquired continuously. This may have the advantage that data can be acquired from surface areas which are larger than the area which can be viewed by the scanning device in one position of the integrated 3D scanner relative to the surface of an object. A number of first data sets may then be acquired covering different portions of the surface such that these first data sets can be used to provide a relatively low-resolution virtual 3D representation of the surface of the object. 
         [0075]    A continued acquiring of data may also have the advantage that the integrated 3D scanner can be moved towards or away from the surface while simultaneously acquiring data sets relating to the surface. 
         [0076]    In some embodiments, the control unit is configured to operate both the first and the second configuration continuously, while only combining acquired first and second data sets when the value of the first and/or second parameter indicates that the integrated 3D scanner is within the first and/or second range of distances, respectively. 
         [0077]    In some embodiments, a condition must be fulfilled before the second configuration of the scanning device acquires the second data set relating to the surface of an object. This condition may relate to a distance from the surface and/or, an orientation of the scanning device relative to the surface. 
         [0078]    When the condition is fulfilled the control unit provides that the second configuration of the scanner device acquires at least one second data set. 
         [0079]    The control unit may be capable of controlling the acquiring of the second data set based on the value of a first parameter derived from the first data set and/or from a representation of the first data set. The representation may comprise an image formed from the first data set, such as a 2D image of the surface, or a virtual 3D representation of the surface. 
         [0080]    In some embodiments, the method comprises determining if the distance between the integrated 3D scanner and the surface is within the second range of distances based on the value of a first parameter relating to the first data set or based on a reading from a distance measurement unit of the integrated 3D scanner. 
         [0081]    In some embodiments, the control unit is capable of controlling the operation of the scanner device based on the value of a first parameter derived from the first data set and/or from said first merged data set. 
         [0082]    In some embodiments, the data processing unit is capable of forming a first virtual 3D representation of the surface from the acquired first data sets. 
         [0083]    The first parameter nay then be derived from this virtual 3D representation. 
         [0084]    The first configuration of the scanning device may comprise a focus scanning unit which is capable of determining the distance between the integrated 3D scanner and the surface of an object, such that the first parameter may be this distance. 
         [0085]    The integrated 3D scanner may be capable of deriving the value of the first parameter for changing distances between the integrated 3D scanner and the surface of an object. 
         [0086]    In some embodiments, at least one boundary of the second range of distances is related to a threshold value of the first parameter. The boundary of the second range of distances may then be determined as the distance between the integrated 3D scanner and the surface at which the value of the first parameter reaches the threshold value. 
         [0087]    The control unit may be adapted for monitoring the first parameter. 
         [0088]    In some embodiments, the control unit is capable of deriving the value of the first parameter, such as deriving the value of the first parameter in real-time. 
         [0089]    In some embodiments, the integrated 3D scanner comprises a storage unit for storing acquired first and second data sets. 
         [0090]    In some embodiments the storage unit is part of the scanning device and the integrated 3D scanner comprises means for transferring acquired data from the storage unit to the data processor unit 
         [0091]    In some embodiments, the data processing unit comprises algorithms adapted for generating a first merged data set from a number of acquired first data sets. 
         [0092]    In some embodiments, the data processing unit comprises algorithms adapted for generating a second merged data set from a number of acquired second data sets. These algorithms may be the same used for merging the first data sets. 
         [0093]    In some embodiments, the data processing unit comprises algorithms adapted for combining the first merged data set and the second merged data set to provide said combined data set. 
         [0094]    In some embodiments, the data processing unit comprises algorithms adapted for combining the first merged data set and the number of second data sets to provide said combined data set. 
         [0095]    The control unit may thus provide that the value of the first parameter can be derived for changing relative positions and distances of the integrated 3D scanner and the surface of an object. 
         [0096]    When operating continuously while the integrated 3D scanner is moved relative to the surface of an object, such as when the integrated 3D scanner approaches a surface of an object, the monitoring of the first parameter may provide information to the control unit of the integrated 3D scanner relating to when the integrated 3D scanner is at a distance where the second configuration of the scanning device is capable of acquiring the second data set relating to, the object surface. 
         [0097]    The control unit may be capable of determining from the value of the first parameter whether the scanning device is at a position relative to the surface of an object where the second configuration of the scanning device can obtain the second data set. 
         [0098]    In some embodiments, the control unit is configured for deriving the first parameter. The control unit may comprise a designated data processor or utilize the data processor unit which combines the data sets, on which computer implemented algorithms are implemented such that the control unit can derive the first parameter from one or more first data sets. 
         [0099]    The first parameter may in principle any parameter which adequately can describe a characteristic of a data set and/or of a virtual representation of a data set. When the representation of the first data set comprises an image of the surface, the first parameter may relate to a measure of the sharpness of the image, such as the contrast between different regions in the image. The image may be said to provide a sharp presentation of the object surface when individual structures in the surface can be distinguished. 
         [0100]    In some embodiments, the data processing unit comprises an algorithm configured for determining the first parameter by utilizing a sharpness vs. distance function, where the sharpness vs. distance function describes the sharpness of an acquired first data set as a function of the distance between the integrated 3D scanner and the surface. The sharpness vs. distance function preferably has been measured prior to using the integrated 3D scanner, such that the distance can be determined by measuring the sharpness of the first data set and then applying the sharpness vs. distance function. The sharpness function may relate to at least one function selected from the group comprising of estimating of image gray level variance and amplitude; computation of an intensity difference between adjacent pixels; standard edge-detection masks; and Fourier transforms. 
         [0101]    In some embodiments, the first configuration is such that the scanning device is capable of acquiring the number of first data sets when the integrated 3D scanner is moved at distances from the surface within the first range of distances. First data sets may then be acquired when the integrated 3D scanner is moved relative to the surface such that first data sets are acquired from a larger area of the surface than the area viewed by the first configuration of the scanning device when the integrated 3D scanner is held at a fixed position relative to the surface. 
         [0102]    In some embodiments, the second configuration is such that the scanning device is capable of acquiring the number of second data sets when the integrated 3D scanner is moved at distances from the surface within the second range of distances. 
         [0103]    Second data sets may then be acquired when the integrated 3D scanner is moved relative to the surface, such that second data sets area acquired from a larger area of the surface than the area viewed by the second configuration of the scanning device when the integrated 3D scanner is held at a fixed position relative to the surface. 
         [0104]    The first and second range of distances may have an overlapping range of distances. 
         [0105]    In some embodiments, the scanning device is configured for simultaneously acquiring first data sets and second data sets when the integrated 3D scanner is at positions relative to the surface where the distance to the surface is in said overlapping range. 
         [0106]    The integrated 3D scanner may be capable of changing the spatial resolution at which the first data set and/or the second data set is acquired. This change may be provided automatically, such as provided automatically based on the value of the first parameter and/or on a measured distance between the integrated 3D scanner and the object surface. The change in spatial resolution can be provided by changing between acquiring the data sets using different sensor elements with different spatial resolutions. Such a change between different sensor elements can be realized by inserting or removing a mirror from the beam path of the scanner device or by having a beam splitter in the beam path and using the control unit to alternate between acquiring from the one and the other sensor element. The size of an aperture in the beam path can also be changed such that the focal depth of the scanner device increases with decreasing aperture size. 
         [0107]    In some embodiments, the scanning device comprises a first scanning unit which at least in part realizes the first configuration of the scanning device, where the scanning unit may be capable of acquiring the first data set. 
         [0108]    In some embodiments, the scanning device comprises a second scanning unit which at least in part realizes the second configuration of the scanning device where the second scanning unit may be capable of acquiring the second data set. 
         [0109]    The first and second configurations of the scanning device nay thus be realized by the first and second scanning units, respectively, and in the context of the present disclosure, the features described in relation to the configurations of the scanning device may also be considered to relate to these scanning units. 
         [0110]    In some embodiments, the first and second scanning units are integrated in the integrated 3D scanner. 
         [0111]    The control unit may be capable of automatically changing between acquiring data from the first scanning unit and the second scanning unit. 
         [0112]    The scanning device may be capable of operating in further configurations, such as in a third configuration capable of acquiring a third data set relating to the surface of an object. 
         [0113]    The third configuration of the scanning device may be such that the third data set comprises data with a spatial resolution, which differs from the spatial resolution of the first and second data sets. 
         [0114]    The integrated 3D scanner may comprise further scanning units, such as a third scanning unit. 
         [0115]    In some embodiments, the control unit is adapted to control the second scanning unit based on the value of the first parameter. In some embodiments, the control unit is adapted to control the third scanning unit based on the value of the first parameter. 
         [0116]    In some embodiments, the integrated 3D scanner comprises an additional measuring device configured for performing at least one additional measurement. 
         [0117]    The additional measuring device may comprise a distance measurement unit configured for measuring the distance from the integrated 3D scanner to the surface of an object, such as a distance measurement unit for time of flight measurement. The distance may be measured from the integrated 3D scanner to said first and/or second portion of surface. The parameter derived from such a distance measurement may relate to the distance between the integrated 3D scanner and the surface of an object. 
         [0118]    In some embodiments, the control unit is adapted to control the second configuration of the scanning device based on the distance to the surface as measured by the distance measurement unit. 
         [0119]    In some embodiments, the control units is adapted to provide that acquiring of the first and/or second data sets is controlled based on the value of a parameter derived from the at least one additional measurement. 
         [0120]    In some embodiments, the integrated 3D scanner is capable of detecting when it is within the second range of distances from the surface of an object. 
         [0121]    This detection may be based on said additional measurement or on an analysis of the first and/or second data set, 
         [0122]    The data processing unit may be configured for forming a virtual 3D representation of the data sets acquired with the scanning device and/or the combined data set. 
         [0123]    In some embodiments, the integrated 3D scanner comprises a transfer unit configured for transferring data from the scanning device to the data processing unit. 
         [0124]    The transfer unit may be an integrated part of the integrated 3D scanner. 
         [0125]    The transfer unit may be configured to transfer the first data set acquired by the scanning device in its first configuration and/or to transfer the second data set acquired by the scanning device in its second configuration. 
         [0126]    The first and second data set may relate to a first and second spatial distribution of electromagnetic signals, respectively. 
         [0127]    The first configuration of the scanning device may comprise a first signal detecting unit capable of receiving and detecting electromagnetic signals from a first solid angle. If part of an object is arranged within this first solid angle, the scanning device may in its first configuration be capable of receiving these electromagnetic signals and thereby acquire the first data set comprising information relating to the surface of the object. 
         [0128]    The second configuration of the scanning device may comprise a second signal detecting unit capable of receiving and detecting electromagnetic signals from a second solid angle. 
         [0129]    If part of an object is arranged within this second solid angle, the scanning device may in its second configuration be capable of receiving these electromagnetic signals and thereby acquire the second data set comprising information relating to the surface of the object. 
         [0130]    The first and second solid angles may be such that the first area is larger than the second area when the first and second distances are identical such that the first and second cross sectional planes are aligned. 
         [0131]    The first and second solid angles may describe a conical or cylindrical shaped region in space over which the electromagnetic signals can be received by the scanner device. 
         [0132]    The solid angle from which such a time of flight measurement collects electromagnetic signals may be larger than, smaller than, or substantially identical to the second solid angle. 
         [0133]    When the time of flight measurement is in addition to the acquiring of data in the first configuration of the scanning device, the solid angle from which such a time of flight measurement collects electromagnetic signals may be larger than, smaller than, or substantially identical to the first solid angle. 
         [0134]    The first and second signal detecting units may be comprised in the first and second scanning units, respectively. 
         [0135]    The first and second detecting units may comprise an array of sensor elements capable of detecting electromagnetic signals and forming a data set from these electromagnetic signals. 
         [0136]    In some embodiments, the array of sensor elements is the same in the first and second detecting units with the difference that when the array of sensor elements are part of the first detecting unit, the sensor elements are binned such that the spatial resolution provided by the array of sensor elements is reduced compared to when a functioning as part of the second detecting unit. 
         [0137]    In some embodiments, the first solid angle is substantially identical to the second solid angle. 
         [0138]    In some embodiments, the first solid angle is larger than the second solid angle. 
         [0139]    The first and second data sets may be such that the data processing unit can form a first and a second virtual 3D representation of the surface from the electromagnetic signals received by the first and second, signal detecting units, respectively. 
         [0140]    When part of an object&#39;s surface arranged in the first solid angle, the first virtual 3D representation may provide information relating to the object surface. This may require that the integrated 3D scanner and the object are arranged at a first distance or in a first distance range from each other. 
         [0141]    In some embodiments, the data processing unit is configured for performing a registration of the second data set into the fiat data set, or vice versa. 
         [0142]    In some embodiments, the data processing unit is configured for performing a registration of a representation of the second data set into a representation of the first data, or vice versa. 
         [0143]    In some embodiments, the data processing unit is configured for performing a registration of said second merged data set into said first merged data set, or vice versa. 
         [0144]    In some embodiments, the data processing unit is configured for providing a stitching of acquired or merged data sets as part of the combining of these data sets. 
         [0145]    In some embodiments, the first configuration is capable of acquiring a first data set which, comprises a point-cloud relating to a first portion of the scanned surface. This can be the case when the first configuration is capable of capturing electromagnetic radiation from a first volume in such a manner that 3D dimensional characteristics of a surface arranged in said first volume are recorded. This can be achieved e.g. by manipulating optical elements in the first configuration such as is done in a focus scanner or a triangulation based laser scanner. 
         [0146]    In some embodiments, the first configuration is such that a point-cloud relating to a first portion of the scanned surface can be formed from the number of first data sets. The first data sets may e.g. comprise a stack of images acquired at different vertical positions relative to the surface of the object, and from this stack of images, the point cloud may be generated. From such a point cloud a first virtual 3D model of the first portion of the surface can be realized. 
         [0147]    In some embodiments, the second configuration is capable of acquiring a second data set which comprises a point-cloud relating to, a second portion of the scanned surface. This can be the case when the second configuration is capable of capturing electromagnetic radiation from a second volume in such a manner that 3D dimensional characteristics of a surface arranged in said second volume are recorded. This can be achieved e.g. by manipulating optical elements in the second configuration such as is done in a focus scanner or a triangulation based laser scanner. 
         [0148]    In some embodiments, the second configuration is such that a point-cloud relating to a second portion of the scanned surface can be formed from the number of second data sets. The second data sets may e.g. comprise a stack of images acquired at different vertical positions relative to the surface of the object, and from this stack of images, the point cloud may be generated. 
         [0149]    The second data sets may e.g. comprise a stack of images acquired at different vertical positions relative to the surface of the object, and from this stack of images, the point cloud may be generated. From such a point cloud a second virtual 3D model of the second portion of the surface can be realized. 
         [0150]    In some embodiments, the data processing unit comprises a data storage medium for storing a number of first data sets and/or for storing a number of second data sets at least temporarily. 
         [0151]    In some embodiments, the data processing unit comprises computer algorithms for combining the number of first data sets to generate a first virtual 3D representation, e.g. of a structure on a surface, from these first data sets. The first data sets may be stored as corresponding points clouds 
         [0152]    In some embodiments, the combining algorithms are adapted to provide a registration of the point clouds into a common reference system e.g. by applying an iterative closest point algorithm, thereby generating the first virtual 3D representation are from these first data sets. 
         [0153]    In some embodiments, the data processing unit comprises a data storage medium for storing a number of second data sets at least temporarily, and computer algorithms for combining the number of second data sets to generate a second virtual 3D representation, e.g. of a structure on a surface, from these second data sets. 
         [0154]    In some embodiments, the second data sets are stored as corresponding points clouds, and the combining algorithms are adapted to provide a registration of the point clouds into a common reference system e.g. by applying an iterative closest point algorithm, such that the second virtual 3D representation can be generated from these second data sets. 
         [0155]    Is some embodiments, the first and second data sets are stored as corresponding points clouds, and the combining algorithms are adapted to provide a registration of the point clouds into a common reference system e.g. by applying an iterative closest point algorithm, such that the virtual 3D representation can be generated. 
         [0156]    The data processing unit may comprise components and computer code configured for performing algorithms relating to said registration. Such registration algorithms may be classified into intensity-based and feature-based. When the registration is of a second data set into a first data set, the first data set may be referred to as the reference or source data set, and the second, data set may be referred to as the target or sensed data set. The registration may then involve spatially transforming the second data set (target data set) to align with the first data set (reference data set) 
         [0157]    In Intensity-based registration methods intensity patterns in images are compared via correlation, metrics, while in feature-based methods a correspondence between image features such as points, lines, and contours is found. 
         [0158]    Intensity-based methods may register entire data sets (such as entire images) or parts of the data set. If parts of a data set are registered, centers of corresponding parts are treated as corresponding feature points. 
         [0159]    Feature-based methods establish a correspondence between a number of points in the data sets. Knowing the correspondence between a number of points, a transformation is then determined to map the target data set to the reference data set, thereby establishing point-by-point correspondence between the reference and target data sets. 
         [0160]    The skilled person will know how to design a data processing device, which is capable of performing such a registration. 
         [0161]    In some embodiments, the data processing unit is an integrated part of the integrated 3D scanner. 
         [0162]    Such a design may be advantageous when the data processing unit is faster at processing the data acquired in the first and/or second configuration than the rate at which these data can be transferred to an external located data processing unit. For many applications it is advantageous to have a real-time confirmation of the quality of a scanning such that an operator continuously can be informed of the quality of data sets relating to the different scanned portions of the surface. The operator may for instance be informed whether the quality of the acquired data set is sufficiently high, such that he can proceed to scanning another portion of the surface, or whether the quality is poor such that more scanning at the present location is required. 
         [0163]    In some embodiments, the data processing unit is arranged separately from the integrated 3D scanner. 
         [0164]    Such a design may be advantageous when the transfer unit can transfer data fast to a powerful external data processing unit. 
         [0165]    In some embodiments, the integrated 3D scanner comprises a memory unit capable of storing the first and/or second data sets, such that the acquired first and second data sets and/or the combined data set can be transferred after the scanning is performed. 
         [0166]    Such a memory function may have the advantage that large amounts of data can be acquired and processed without the need for transferring data to an external device until after the scanning. 
         [0167]    The transfer unit may be configured for a wireless or a wired transmission of data to the data processing unit. 
         [0168]    In some embodiments, the scanning device comprises an optical system. The optical system may be capable of receiving electromagnetic signals and transmitting these to the first and/or second signal detecting units. 
         [0169]    The optical system may comprise a number of optical components. In some embodiments, some of the optical components are part of both the first and second configurations of the scanning device. 
         [0170]    The first and second scanning units may share a number of optical components. 
         [0171]    In some embodiments, the first and second configurations are provided by substantially the same optical components such that electromagnetic radiation from the object surface travels through the same optical components and e.g. are recorded by the same sensor element. The difference between the first and second configurations may then be the relative positions of the optical components in the two configurations. A lens or a lens system may e.g. be displaced relative to the other optical components, or lenses in a lens system may be displaced relative to each other such that position of a focal of the scanner device changes. In one relative position the first configuration is provided while in another relative position of the lenses, the second configuration is provided. 
         [0172]    In some embodiments, the optical systems of the first and second configuration are independent systems which do not share any optical components. 
         [0173]    The first and/or second scanning unit may comprise an array of sensor element. Such an array of sensor elements may be capable of detecting electromagnetic signals and forming a data set from these electromagnetic signals. 
         [0174]    The first configuration of the scanning device may be adapted to acquire first data sets which can be used for a time of flight type of measurement. The data processing unit may be capable of deriving the distance between the integrated 3D scanner and the surface of an object. 
         [0175]    In some embodiments, the integrated 3D scanner is capable of detecting when it is within the second range of distances from the surface of an object. 
         [0176]    This detection may be based on said additional measurement or on an analysis of the first, and/or second data set. 
         [0177]    The first configuration and/or the second configuration of the scanning device may be adapted to provide a focus scanning of the surface. 
         [0178]    In some embodiments, the first and/or second scanning unit comprises a 3D focus scanning unit, adapted for 3D focus scanning of a surface. 
         [0179]    The 3D focus scanning unit may be configured to perform a non-contact 3D scanning of an object by obtaining a series of images for different focus planes on the object and determining in-focus regions for the obtained images. This may be done by means of a camera and imaging optics where the focus plane on the object can be varied. The in-focus data may be transformed into 3D real world coordinates thereby obtaining a 3D surface or 3D model of the object. For the purpose of 3D scanning it may be advantageous to obtain images with a shallow depth-of-field so that in-focus positions are determined with high accuracy 
         [0180]    The 3D focus scanning unit may comprise:
       a probe light device capable of generating a probe light, and optical components for transmitting probe light towards an object such that the first and/or second scanner unit is capable of illuminating at least a part of the surface of the object;   a camera comprising an array of sensor elements, and optical components for transmitting light returned from the object surface to the array of sensor elements.   an optical system for imaging with a first depth-of-field on the camera at least part of the transmitted light returned from the object surface to the array of sensor elements,   means for varying the position of the focus plane relative to the optical system, such that the position of the focus plane relative to, an object can be adjusted,   means for obtaining at least one image from said array of sensor elements,   means for determining the in-focus position(s) of:
           each of a plurality of the sensor elements for a range of focus plane positions, or   each of a plurality of groups of the sensor elements for a range of focus plane positions and   
           means for transforming the in-focus data into D coordinates;       
 
         [0190]    The 3D focus scanning unit may further comprise:
       means for selecting a portion of light rays returned from the object, where the light rays have been transmitted through at least a part of the optical system; and   a further camera for capturing at least some of the selected light rays with a second depth-of-field substantially larger than the first depth-of-field.       
 
         [0193]    The first and/or the second scanner unit may be adapted to perform a scanning by means of laser light scanning, white light scanning, probe-scanning, X-ray scanning, and/or CT scanning. 
         [0194]    The integrated 3D scanner may comprise a source of electromagnetic signals, where the source is arranged such that a surface of an object can be exposed to the electromagnetic signals emitted by the source and such that electromagnetic signals reflected or emitted from the exposed area of the surface can be received by the scanning device. The source may comprise a monochromatic source, a source emitting electromagnetic signals at a number of discrete wavelengths or wavelength ranges, or a broadband source. The electromagnetic signals may have a wavelength in the X-ray range, in the infrared range, in the visual range or in the ultraviolet range of wavelengths. The source may be is arranged such the emitted electromagnetic signals propagate along or substantially parallel with the optical axis of the first and/or second configuration from the integrated 3D scanner. 
         [0195]    In some embodiments, the ratio between the spatial resolution of the first data set and of the second data set is below a resolution factor. 
         [0196]    The ratio between the spatial resolutions provided by the first configuration and the second configuration of the scanning device may be below the resolution factor. 
         [0197]    In some embodiments, the ratio between the spatial resolutions provided by the first scanning unit and the spatial resolution provided by the second scanning unit may be below the resolution factor. 
         [0198]    The resolution factor may be below about 0.8, such as below about 0.6, such as below about 0.5, such as below about 0.4 such as below about 0.3, such as below about 0.2, such as below about 0.1, such as below about 0.05, such as below about 0.02, such as below about 0.01, such as below about 0.005, such as below about 0.0025, such as below about 0.001, such as below about 0.0005, such as below about 0.0001. 
         [0199]    The first and the second configurations of the scanning device may both be capable of providing data sets at variable resolutions, such that e.g. the first configuration may provide first data sets in at least two different resolutions. 
         [0200]    In some cases, the resolution may be measured as pixels per cm, as pixels per cm 2 , or as dots per inch. This is for instance the case when the first and/or second data sets comprise an image of the surface, and/or when a 3D image is formed from acquired data sets. 
         [0201]    The object may in principle be any object that can provide or reflect electromagnetic signals or any other signal that can be detected, such as acoustic waves. 
         [0202]    The integrated 3D scanner provides an advantage over prior art scanners in that the scanning device can be operated in two configurations, where these configurations may provide a scanning of the surface of an object, and where the data acquired with the scanning device in the first and second configurations can be combined by a data processing unit. 
         [0203]    The object may comprise a surface in which a number of structures distributed over the surface. For some scanners, the structures must preferably be located relatively close compared to the area of the surface which the scanning device can view, such that the scanning device at all times can capture signals from at least one structure, when scanning across the surface. 
         [0204]    If the structures are arranged with large distances to the nearest neighbor, the relative positions of the structures may not be determined precisely. This may especially be true when the surface between the structures is highly uniform, such that the movement of the integrated 3D scanner relative to the surface is difficult to observe with the scanning device. 
         [0205]    The distance between the scanning device and the surface of an object may be measured along the first and/or second optical axis of the scanning device. 
         [0206]    The distance between the scanning device and the surface of an object may be measured along an axis connecting the scanning device to a center of the first or second portion of the surface, when the surface is arranged at the first or second focal plane, respectively. 
         [0207]    In a first cross sectional plane arranged perpendicular to the first optical axis of the first configuration of the scanning device the first solid angle may cover a first area at a first distance from the integrated 3D scanner. 
         [0208]    In a second cross sectional plane arranged perpendicular to the second optical axis of the second configuration of the scanning device the second solid angle may cover a second area at a second distance from the integrated 3D scanner. 
         [0209]    In some embodiments, the scanning device in the first configuration is capable of receiving data relating to a first portion of the surface when the integrated 3D scanner is arranged in a first position relative to the surface. 
         [0210]    In some embodiments, the scanning device in the second configuration is capable of receiving data relating to a second portion of the surface when the integrated 3D scanner is arranged in a second position relative to the surface. 
         [0211]    The second portion may be substantially identical to the first portion. 
         [0212]    In some embodiments, the scanning device is such that the first and second configurations receive signals from substantially the same portion of the surface of the object when the integrated 3D scanner is arranged in a fixed position relative to the surface of the object. The optical system and/or the signal detecting units of the second configuration may then be adapted to receive and detect signals in a higher spatial resolution from said same portion of the surface than the first configuration. 
         [0213]    The second detection device may be capable of detecting electromagnetic signals in a higher resolution than the first detection device. For instance the second detection device may be capable of detecting images in a resolution of 3 mega pixels, while the first detection device may be capable of detecting images in a resolution of 1 mega pixels for the same area. 
         [0214]    The first portion may be larger than the second portion, such that the first portion covers a larger area of the surface than the second portion. 
         [0215]    The second portion may be at least partly embedded in the first portion, such that in coinciding first and second cross sectional planes, the first portion surrounds the second portion. 
         [0216]    In some embodiments, the ratio between the area of the second portion and the area of the first portion of the surface is below a portion area factor. 
         [0217]    The portion area factor may be below about 0.8, such as below about 0.6, such as below about 0.5, such as below about 0.4, such as below about 0.3, such as below about 0.2, such as below about 0.1, such as below about 0.05, such as below about 0.02, such as below about 0.01, such as below about 0.005, such as below about 0.0025, such as below about 0.0001, such as below about 0.0002, such as below about 0.0001. 
         [0218]    In some embodiments, the data processor unit or a second data processor unit is configured for executing algorithms for generating a virtual 3D representation of the surface based on the combined data. 
         [0219]    In some embodiments, the data processing unit is capable of forming a first virtual 3D representation of the surface from the acquired first data sets, such as from the first merged data set, or wherein the first merged data set is a first virtual 3D representation of the surface. 
         [0220]    In some embodiments, the first parameter is derived from this virtual 3D representation. 
         [0221]    In some embodiments, the data processing unit is capable of forming a second virtual 3D representation of the surface from the acquired second data sets, such as from the second merged data set, or wherein the second merged data set is a first virtual 3D representation of the surface. 
         [0222]    In some embodiments, the data processing unit is capable of forming a virtual 3D representation of the surface from the combined data set, or wherein the combined data set is a virtual 3D representation of the surface. 
         [0223]    In some embodiments, the first configuration is such that each acquired first data set comprises a point cloud, and/or wherein the second configuration is such that each acquired second data set comprises a point cloud. 
         [0224]    In some embodiments, the data processing unit comprises algorithms for combining point clouds relating to different portions of the object surface to provide a virtual 3D representation of the object surface from a number of data sets. 
         [0225]    In some embodiments, the combined data set is a virtual 3D representation of the object surface, and where the algorithms for combining point clouds are capable of combining point clouds acquired by the first and second configurations to provide said combined virtual 3D representation. One way of combining point clouds is to bring them into a common reference system, a process often referred to as registration, and then combine the point clouds in the common reference system to create a combined virtual 3D representation of the surface. 
         [0226]    In some embodiments, the control unit is capable of controlling the operation of the scanner device based on the value of a second parameter derived from the second data set and/or from said second merged data set. 
         [0227]    In some embodiments, the control unit is capable of providing that the first configuration of the scanner device acquires data from the object surface when the second parameter is outside a given interval. Outside this interval, no structures can be identified in the second data set or in said second merged data set, i.e. no geometrical information of the surface can be derived therefrom. 
         [0228]    In some embodiments, the combined data set comprises a virtual 3D representation of the surface. 
         [0229]    The data processing device may be capable of merging information from a number of data sets into a representation of e.g. a structure on the surface of an object. In some cases a number of first data sets, are merged, such as 5, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90 or in some cases even hundreds, from many different directions may be required to obtain information about a structure. 
         [0230]    In some embodiments, the first and/or the second data sets are brought into a common reference system, a process that may be called alignment or registration, and then merged to create a complete virtual 3D model of the surface. 
         [0231]    In some embodiments, at least part of he integrated 3D scanner adapted for use as a handheld scanner. 
         [0232]    In some embodiments, the control unit is configured for controlling the acquiring of first data sets with the first configuration and/or the acquiring of second data sets with the second configuration based on the value of a second parameter derived from the second data set. 
         [0233]    In some embodiments, the control unit is configured for controlling the acquiring of first data sets with the first scanning unit and/or the acquiring of second data sets with the second scanning unit based on the value of a second parameter derived from the second data set. 
         [0234]    In some embodiments, the first and second configurations are mutually calibrated, such as calibrated to compensate for an offset between the locations on the scanner device at which the first and second configurations receive electromagnetic signals from the object surface. When combining the first and second data sets, this mutual calibration can be taken into account such that a correct combination is obtained. The calibration may be hardware or software implemented. 
         [0235]    In one hardware implemented calibration, the relative orientation of the first and second scanner units may be adjusted to provide that their fields of view intersect at a preferred distance from the scanner device. 
         [0236]    In software implemented calibration, the calibration may be performed during the combination of the first and second data sets based on a previously performed measurement of the offset between the locations. The measured offset is then taken into account e.g. in a registration of the second data set into the first data set, such that the first and second data sets are offset corresponding to the offset between the locations. 
         [0237]    In some embodiments, the second configuration provides a zooming into a smaller second portion of the surface compared to the first portion, of the surface scanned in the first configuration. 
         [0238]    The scanning device may be adapted to provide the zooming while the integrated 3D scanner is at a fixed position relative to the object. 
         [0239]    In some embodiments, the portion of a surface that can be viewed by the scanning device is larger in the first configuration than in the second configuration. 
         [0240]    In the context of the present disclosure, the phrase “viewing a portion of a surface” may refer to the case where electromagnetic signals can be received by a scanning unit from this portion of the surface when the integrated 3D scanner is held in a fixed position relative to the surface. The phrase may refer to the case where the relative arrangement of the scanning unit and the surface of an object are such that the electromagnetic signals received from the viewed portion can be used to provide a representation wherein structures on the surface can be identified. 
         [0241]    The first scanning unit may be configured for viewing the first portion of the surface. 
         [0242]    The second scanning unit may be configured for viewing the second portion of the surface. 
         [0243]    The ratio between the area of a portion viewed by the first scanning unit and the area viewed by the second scanning device is below a view area factor. 
         [0244]    The view area factor may be below about 0.8, such as below about 0.6, such as below, about 0.5, such as below about 0.4, such as below about 0.3, such as below about 0.2, such as below about 0.1 such as below about 0.05, such as below about 0.02, such as below about 0.01, such as below about 0.005, such as below about 0.0025, such as below about 0.001, such as below about 0.0005, such as below about 0.0001. 
         [0245]    The integrated 3D scanner is capable of scanning a surface an object, where the formed first and second data set may relate to representations of the surface obtained at different spatial resolutions. 
         [0246]    The first and second configuration of the scanning device may be capable of acquiring a relatively low-resolution data set and a relatively high-resolution data set, respectively, from a surface of an object. 
         [0247]    A virtual 3D representation of the scanned surface of the object may be obtained in a relatively high-resolution from the relatively high-resolution data sets by merging two or more of these data sets. 
         [0248]    This may however introduce some distortion in the generated virtual 3D representation as described elsewhere herein. This may e.g. occur when some of the data sets do not include a well-defined structure that can be used as landmark/anchor in the merging of data sets. 
         [0249]    A virtual 3D representation of the scanned surface of the object may be obtained in a relatively low resolution by merging the relatively low-resolution data set. 
         [0250]    The virtual 3D representations of the scanned surface obtained in the low-resolution and in the high-resolution may then be merged into a combined virtual 3D model. 
         [0251]    The relatively high-resolution data may be merged directly to the virtual 3D representation obtained from the relatively low-resolution data. Thereby the relative position of the relatively high-resolution data acquired with the second configuration is determined by the spatial resolution of the virtual 3D representation obtained from the relatively low-resolution data. 
         [0252]    The first configuration of the scanning device may be such that when a surface of object is arranged at the first focal plane, the first spatial distribution of electromagnetic signals provides a first representation of the surface in the first spatial resolution. Further, the second configuration of the scanning device may be such that when a surface of an object is arranged at the second focal plane, the second spatial distribution of electromagnetic signals provides a second representation of the surface which has the second spatial resolution. 
         [0253]    The integrated 3D scanning device may define a fiat optical axis along which electromagnetic signals can travel from the first focal plane to be received by scanning device in the first configuration. 
         [0254]    The integrated 3D scanning device may define a second optic axis along which electromagnetic signals can travel from the second focal plane to be received by the scanning device in the second configuration 
         [0255]    The first focal plane may be perpendicular to the first optical axis of the scanning device in the first configuration. 
         [0256]    The second focal plane may be perpendicular to the second optical axis of the scanning device in the second configuration. 
         [0257]    The first and second focal planes may extend, for some depth along the first and second optical axes, respectively. These focal lengths may be determined by the design of the optical system in the two configurations. 
         [0258]    In one embodiment, the focal depth at the second focal plane is smeller than the focal depth at the first focal plane, such as smaller with a factor of about 2, such as a factor of about 3, such as a factor of about 5, such as a actor of about 7, such as a factor of about 10, such as a factor of about 15, or such as a factor of about 20. 
         [0259]    In some embodiments, the scanning device in the first configuration is capable of receiving the first spatial distribution of electromagnetic signals from a first portion of the surface of an object. 
         [0260]    In some embodiments, the scanning device in the second configuration is capable receiving the second spatial distribution of electromagnetic signals from a second portion, of the surface of an object. 
         [0261]    The first and second focal planes may be arranged at first and second distances from the integrated 3D scanner, respectively. 
         [0262]    The first distance and the second distance may be substantially identical. 
         [0263]    The first distance may be larger than the second distance. 
         [0264]    In some embodiments, the second configuration provides a zooming such that the size of the area viewed by the scanning device in the second focal plane in the second configuration is smaller than the size of the area viewed by the scanning device in the first focal plane in the first configuration. 
         [0265]    The scanning device and the data processing unit may be integrated in the integrated 3D scanner. 
         [0266]    The first and/or second configuration of the scanning device may comprise a 3D scanner unit. 
         [0267]    Scanning the surface of an object using a 3D scanner for obtaining a three dimensional representation of the surface of the object may also be denoted 3D modeling, which is the process of developing, a mathematical representation of the three-dimensional surface of the object via specialized software. The product is called a 3D model. A 3D model represents the 3D object using a collection of points in 3D space, connected by various geometric entities such as triangles, lines, curved surfaces, etc. The purpose of a 3D scanner is often to create a point cloud of geometric samples on the surface of the object. 
         [0268]    3D scanners may collect distance information, about surfaces within its field of view. The “picture” produced by a 3D scanner describes the distance to a surface at each point in the picture. 
         [0269]    For most situations, a single data et will not produce a complete model of he object. Multiple data sets, such as 5, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90 or in some cases even hundreds, from many different directions may be required to obtain information about all surfaces of the object or a structure on the surface. These data sets are brought in a common reference system, a process that may be called alignment or registration, and then merged to create a complete model. 
         [0270]    One type of 3D scanner is the triangulation 3D laser scanner which uses laser light to probe the environment or object. A triangulation laser shines a laser on the object and exploits a camera to look for the location of the laser dot. Depending on how far away the laser strikes a surface, the laser dot appears at different places in the camera&#39;s field of view. This technique is called triangulation because the laser dot, the camera and the laser emitter form a triangle. A laser stripe, instead of a single laser dot, may be used and is then swept across the object to speed up the acquisition process. 
         [0271]    Structured-light 3D scanners project a pattern of light on the object and look at the deformation of the pattern on the object. The pattern may be one dimensional or two dimensional. An example of a one dimensional pattern is a line. The line is projected onto the object using e.g. an LCD projector or a sweeping laser. A camera, offset slightly from the pattern projector, looks at the shape of the line and uses a technique similar to triangulation to calculate the distance of every point on the line. In the case of a single-line pattern, the line is swept across the field of view to gather distance information one strip at a time. 
         [0272]    An example of a two-dimensional pattern is a grid or a line stripe pattern. A camera is used to look at the deformation of the pattern, and an algorithm is used to calculate the distance at each point in the pattern. Algorithms for multistripe laser triangulation may be used. 
         [0273]    The present disclosure relates to different objects including the integrated 3D scanner and the method described above and in the following, and corresponding methods, devices, apparatuses, systems, uses and/or product means, each yielding one or more of the advantages described in connection with the object of the disclosure, and the embodiments described in connection with the mentioned object and/or disclosed in the appended claims. 
         [0274]    In some embodiments, the method comprises controlling the configuration in which the scanning device operates. 
         [0275]    The controlling of the configuration of the scanning device may comprise changing between operating the scanning device in the first configuration and in the second configuration. 
         [0276]    The controlling of the configuration of the scanning device may comprise changing between operating the scanning device in the first and second configurations simultaneously and operating the scanning device in the first or second configuration only. 
         [0277]    A number of first data sets and/or a number of second data sets maybe acquired in the method. 
         [0278]    In some embodiments, the scanning device acquires a number of first data sets while the integrated 3D scanner and the object are moved relative to each other. 
         [0279]    In some embodiments,the first configuration provides a view of a relatively larger portion of the surface of the object when the integrated 3D scanner is arranged at a distance within the first range of distances from the surface of the object, and wherein the second configuration provides a view of a relatively smaller portion of the surface of the object when the integrated 3D scanner is arranged at a distance within the second range of distances from the surface of the object. 
         [0280]    In some embodiments, the method comprises acquiring first data sets when the integrated 3D scanner and the object approach each other, and second data sets may be acquired when the integrated 3D scanner and the object are spaced apart by a distance which is within the second range of distances. 
         [0281]    In some embodiments, at least one boundary of the second range of distances is determined as the distance between the integrated 3D scanner and the surface at which the value of the first parameter reaches the threshold value. The threshold value may have a preset value or be provided by a user. 
         [0282]    In some embodiments, the second data sets are automatically acquired when the integrated 3D scanner is within the second range of distances. 
         [0283]    In some embodiments, the acquiring of second data sets is automatically stopped when the integrated 3D scanner is moved away from the object surface such that it no longer is within the second range of distances. 
         [0284]    In some embodiments, the combination of first and the second data sets is configured to provide that the combined data set provides a registration of the second data sets into the first data sets. 
         [0285]    The first data set may be acquired while maintaining the relative position of the object and the integrated 3D scanner, such that the first data set is acquired without moving e.g. the integrated 3D scanner relative to the object. 
         [0286]    The second data set may be acquired while maintaining the relative position of the object and the integrated 3D scanner, such that the second data set is acquired without moving e.g. the integrated 3D scanner relative to the object. 
         [0287]    In some embodiments, the scanner system comprises an external positioning system configured to determine the position and/or orientation of, the integrated 3D scanner relative to the surface of the object. 
         [0288]    In some embodiments, the integrated 3D scanner comprises a non-transitory computer readable medium having one or more computer instructions stored thereon, where said computer instructions comprises instructions for controlling the operation of the configurations of the scanning device when acquiring one or more first and one or more second data sets, and instructions for combining the one or more first and the one or more, second data sets to obtain the combined dataset. 
         [0289]    Disclosed is a computer program product comprising program code means for causing a data handling system to perform the method of the present disclosure when said program code means are executed on the data handling system. 
         [0290]    The computer program product may comprise a computer-readable medium having stored there on the program code means. 
         [0291]    Disclosed is a nontransitory computer readable medium storing thereon a computer program, where said computer program is configured for causing computer-assisted scanning of an object using the integrated 3D scanner according to the present disclosure. 
         [0292]    The disclosure may relate to a computer program product comprising program code means for causing a data processing system to perform the method according to any of the embodiments, when said program code means are executed on the data processing system, and a computer program product, comprising a computer-readable medium having stored there on the program code means. 
         [0293]    In the claims and the description the integrated 3D scanner is described in relation to the scanning of the surface of an object. The scanning device may however also be adapted to allow for the scanning of an interior structure in the object in one of its configurations. The first configuration may e.g. be adapted to provide a scanning of the surface of the object, while the second configuration may be capable of acquiring data relating to an internal structure such as with an X-ray imaging device. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0294]    The above and/or additional objects, features and advantages of the present invention, will be further elucidated by the following illustrative and non-limiting detailed description of embodiments of the present invention, with reference to the appended drawings, wherein: 
           [0295]    In the following description, reference is made to the accompanying figures, which show by way of illustration how the disclosure may be practiced. 
           [0296]      FIG. 1  shows an example of a flow chart of a method for scanning the surface of an object using the integrated 3D scanner. 
           [0297]      FIGS. 2 a  and 2 b    illustrate use of the integrated 3D scanner. 
           [0298]      FIG. 3  shows a schematic of the movement of the integrated 3D scanner towards the surface of an object. 
           [0299]      FIG. 4  shows a schematic of the movement of the integrated 3D scanner relative to the surface of an object hen the surface is scanned. 
           [0300]      FIG. 5  shows an example of how the integrated 3D scanner can be used for scanning the surface of an object. 
           [0301]      FIG. 6  show an example of the integrated 3D scanner wherein the second configuration may provide a zooming into the surface while the integrated 3D scanner is held at a fixed position relative to the surface. 
           [0302]      FIG. 7  shows an example where a distance measurement unit is used to determine the distance between the integrated 3D scanner and the surface. 
           [0303]      FIG. 8  shows a schematic presentation of the optical system in an embodiment of the integrated 3D scanner. 
           [0304]      FIG. 9  shows a schematic presentation of the optical system in an embodiment of the integrated 3D scanner. 
       
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
       [0305]    In device claims enumerating several units or devices, several of these units or devices can be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims or described in different embodiments does not indicate that a combination of these measures cannot be used to advantage. 
         [0306]    Several of the figures show a cross sectional presentation of the situation, which often is a 3D situation where the object surface and the areas viewed by the scanning device extends over a length along an axis perpendicular to the cross section seen in the figures. 
         [0307]    Although some embodiments have been described and shown in detail, the invention is not restricted to them, but may also be embodied in other ways within the scope of the subject matter defined in the following claims. In particular, it is to be understood that other embodiments may be utilized and structural and functional modifications may be made without departing from the scope of the present invention. 
         [0308]    The integrated 3D scanner of the present disclosure is an improvement over prior art scanners as will be illustrated in the following example of the use of the integrated 3D scanner. 
         [0309]    In the example, the surface has a first and a second structure that are separated by a distance which is larger than the area viewed by the second configuration of the scanning device when the scanner device is arranged at a distance from the object surface within the second range of distances where the second configuration can acquire second data sets that provide useful geometrical information from the surface. 
         [0310]    When initiating the scanning of the surface of the object, the integrated 3D scanner is arranged at a distance within the first range of distances viewing the first structure of the surface. The integrated 3D scanner is operating in the first configuration and is moved by the operator towards the surface while maintaining the first structure in the area viewed by the first configuration. During the movement towards the surface, the first configuration of the scanning device continuously acquires first data sets relating to the surface, and the data processing unit forms a large-area low-resolution virtual 3D representation of the area viewed by the first configuration. 
         [0311]    In embodiments of the integrated 3D scanner comprising a distance measurement unit, the reading from this may be used to determine when the integrated 3D scanner is within a distance in the second range of distances from the object surface. 
         [0312]    In embodiments where the integrated 3D scanner is capable of deriving a first parameter and using this to determine when the integrated 3D scanner is within a distance in the second range of distances from the object surface, the value of the first parameter may be derived in real-time from the first data sets or from the formed relatively low-resolution virtual 3D representation of the surface, such that the first parameter can be monitored by the control unit. 
         [0313]    The monitoring of the first parameter hence provides information to the integrated 3D scanner relating to when the integrated 3D scanner is at a distance where the second configuration of the scanning device is capable of acquiring the second data set. 
         [0314]    When at a distance within the second range, of distances, the second configuration may start acquiring second data sets. The acquiring of first data sets using the first configuration may continue while the second configuration acquires data. 
         [0315]    While the integrated 3D scanner is within the second range of distances from the surface, the second configuration acquires second data sets relating to the first structure of the surface. When sufficient second data sets have been acquired from the first structure, the integrated 3D scanner is moved to a position where the second structure can be scanned using the second configuration of the scanning device. 
         [0316]    The movement to the second structure may comprise a movement away from the surface, such that the integrated 3D scanner eventually is at a distance outside said second range of distances and the second configuration stops acquiring data. The integrated 3D scanner is then moved towards the surface where the second structure is located and similar to the approaching of the first structure the second configuration then starts acquiring data again when the integrated 3D scanner is sufficiently dose to the surface. The position at which the second configuration should stop acquiring data may also be determined from the value of a second parameter derived from the second data set or from a distance measurement provided by a distance measurement unit of the integrated 3D scanner. 
         [0317]    This movement to the second structure may also comprise movement along the surface at substantially a constant distance to the surface, such that the second configuration continues to acquire data during the movement. During this movement the first configuration of the scanning device may continuously acquire first data sets which may be used to generate the relatively low-resolution virtual 3D representation. 
         [0318]    The second data sets obtained at the first and second structures are used to form relatively high-resolution virtual 3D representations of these structures. The high-resolution virtual 3D representations can then be combined with the low-resolution virtual 3D representation formed from the first data sets by the data processing unit. 
         [0319]    The result is a virtual 3D model of the surface where the first and second structures are seen in a high-resolution while the, accuracy of the their relative position is limited by the resolution of the scanning device in the first configuration rather than an accumulated stitching error caused by inaccurate alignment of individual second data sets. 
         [0320]      FIG. 1  shows an example of a flow chart of a method for scanning the surface of an object, using the integrated 3D scanner. 
         [0321]    In step  101  the integrated 3D scanner is initially arranged at a distance within the first range of distances in such a manner that data relating to a first structure on the surface can be acquired by the first configuration of the scanning device. The integrated 3D scanner is then moved towards the surface while the first configuration continuously acquires first data sets. 
         [0322]    In step  102  the value of the first parameter or the reading from a distance measurement unit of the integrated 3D scanner indicates that the integrated 3D scanner has reached a position within the second range of distances from the surface such that the second configuration can acquire data relating to the surface. The first structure on the surface is then scanned in a high-resolution using the second configuration. 
         [0323]    In step  103  the scanning of a first structure using the second configuration is done and the integrated 3D scanner is moved to a second structure which also is to be scanned using the second configuration. The movement may be along the surface or by moving the integrated 3D scanner away from the surface at the first structure and towards the surface at the second structure. It may be advantageous to move the integrated 3D scanner away from the surface when the distance between the structures on the surface exceeds the size of the portion of the surface which can be viewed by the scanning device in the first configuration. When moving the integrated 3D scanner away from the surface this portion may increase to cover both the first and second structures while still being able to acquire data sets that provide geometrical information relating to the object surface. 
         [0324]    In step  104  the second structure on the surface is scanned in a high-resolution using the second configuration. 
         [0325]    In step  105  the data processing device combines the first and second data sets such that the combined data set is obtained. The combined data set may provide a virtual 3D representation of the scanned surface wherein the first and second structures are seen in a higher resolution than the part of the object surface between the structures. The data sets may be combined during the scanning or after the scanning. 
         [0326]      FIG. 2  illustrates a use of the integrated 3D scanner. 
         [0327]    The second configuration of the scanning device may be adapted for acquiring a second data set which provides a high-resolution representation of the surface of an object. Often such scanners are only capable of receiving electromagnetic signals from a limited area of the surface such that each second data set may relate only to a fraction of the area of a given structure on the surface. 
         [0328]    The whole structure on the surface can then be scanned by moving the scanner relative to the surface and acquiring a number of second data sets relating to overlapping sections of the surface. The acquired second, data sets can then be combined to provide a data set relating to the entire, structure. A precise combination of the number of second data sets requires that a precise alignment of the individual second data sets relative to each other can be established. 
         [0329]    Some objects have surfaces where a number of structures preferably should be scanned with a high spatial resolution, while the areas between the structures have little or no structure which can be used by the second configuration of the scanning device to provide a precise alignment in the combination of the second data sets. In such cases can large errors occur in the relative position of the structures in a virtual 3D representation of the surface formed from a number of second data sets. The errors in the relative position may accumulate over the surface and become significant. 
         [0330]    The integrated 3D scanner may solve this problem as illustrated in  FIG. 2   a.    
         [0331]    The surface  210  of the object to be scanned has a first structure  211  and a second structure  212  which both are to be scanned using the second configuration of the scanning device. Between the two structures  211 ,  212  the surface has no structures which can be used to provide a precise combination of second data sets acquired from different portions of the surface. 
         [0332]    When the integrated 3D scanner  215  is arranged at a position within the first range of distances, electromagnetic signals received by the scanning device in the first configuration from an area  2162  can be used for generating a first data set which provides information relating to the object surface. The solid angle over which the scanning device in the first configuration is capable to receive electromagnetic signals is illustrated by the line  2161 . The first configuration collects electromagnetic signals at the position marked with the dot  216 . 
         [0333]    The area  2162  covers both the first structure  211  and the second structure  212  such that the acquired first data set comprises data relating to both structures. Thereby the relative position of these structures can be determined with a precision limited by the spatial resolution of the first configuration instead of being limited by accumulated offset errors occurring in the combination of second data sets over the surface between the structures. 
         [0334]    When the integrated 3D scanner is moved to a position where the second configuration can collect electromagnetic signals (marked with the dot  230 ), the second data sets can be acquired from the area  2302 . The solid angle over which the scanning device in the second configuration is capable to receive electromagnetic signals is illustrated by the line  2301 . 
         [0335]    When the scanning of the first structure  211  is completed, the integrated scanner is moved to the second structure  212  which then is scanned using the second configuration. During the movement, the first configuration may continuously acquire first data sets but this may not be required if the first data set acquired at the position  216  comprises sufficient data relating to both structures. 
         [0336]    The second data sets relating to the first and second structures  211 ,  212  can then be combined with the acquired first data set to provide a virtual 3D representation of the surface wherein the first and second structures are in a relatively higher resolution and their relative position is determined with an improved accuracy compared to what can be obtained using only the second configuration. 
         [0337]    In some cases there is a desire to reduce the amount of data acquired from the surface  210  of the object or to reduce the scan time. This may e.g. be so when there is no need for acquiring data in the relatively higher resolution from the area between the structures  211 ,  212 . When it is sufficient to scan the part, of the surface between the structures  211 ,  212  using the first configuration the amount of data acquired by the integrated 3D scanner may be reduced and along with it the scan time, since a high-resolution scanning often is more time consuming that a low-resolution scanning. 
         [0338]    In such cases, the option of acquiring data in a two resolutions with the integrated 3D scanner also provides an advantage over prior art scanners. 
         [0339]      FIG. 2 b    illustrates the ranges of distances in, which a surface may have to be arranged for the configurations of the scanning device to acquire data relating, to the surface. 
         [0340]    When the scanning device is the first configuration  2151 , first data sets may be acquired at distances in the first range of distances extending from a minimum distance  2911  to a maximum distance  2912  from the integrated 3D scanner  215 . 
         [0341]    When the scanning device is the second configuration  2152 , second data sets may be acquired at distances in the second range of distances extending from a minimum distance  2921  to a maximum distance  2922  from the integrated 3D scanner  215 . 
         [0342]    The overlapping range of distances is from the integrated 3D scanner is indicated with the line  293  extending from the minimum distance  2911  of the first configuration to the maximum distance  2922  if the second configuration. 
         [0343]      FIG. 3  shows a schematic of the movement of the integrated 3D scanner towards the surface of an object. 
         [0344]    When the scanning device is capable of operating continuously in the first configuration, the first configuration can monitor the approach of the integrated 3D scanner towards the surface of an object. This can be realized by e.g. monitoring the first, parameter such that information is provided to or provided by the control unit, which then determines when the integrated 3D scanner is at a distance where the second configuration of the scanning device is capable of acquiring the second data set relating to the object surface. 
         [0345]    In the figure, the position of the integrated 3D scanner is illustrated by the dots marking the positions at which the scanning device collects electromagnetic signals. 
         [0346]    At the initial position  316  the first configuration acquires first data sets relating to a part of the surface including both a first structure  311  and a second structure  312 . 
         [0347]    The integrated scanner can then be moved towards the surface. In the figure, this is indicated by a discrete number of positions  317 ,  318  and  319  but in principle, the movement may be smooth with first data sets being acquired continuously by the first configuration. 
         [0348]    When the integrated 3D scanner has reached the position marked with dot  319 , the value of the first parameter indicates that the distance between the surface and the integrated 3D scanner is within the second range of distances and the scanning device automatically starts operating in the second configuration as illustrated with the lines  3191 . The scanning device may continue to operate in the first configuration during the scanning of the structure  311  using the second configuration, or it may operate only in the second configuration. 
         [0349]    Alternatively or in addition to the use of the first parameter, the distance to the object surface may be determined using a distance measurement unit acting as an additional measurement unit. The distance measurement unit may be configured for a time of flight measurement. 
         [0350]      FIG. 4  shows a schematic of the movement of the integrated 3D scanner relative to the surface of an object when the surface is scanned. 
         [0351]    The scanning device of the present disclosure can operate in a first configuration adequate for scanning relatively larger areas of the surface compared to the relatively smaller area which can be viewed by the scanning device in the second configuration. 
         [0352]    That is, the integrated 3D scanner of the present disclosure can be used for scanning surfaces of objects where interesting structures are separated by distances that are relatively large compared to the surface area which can be viewed, by the scanning device in the second configuration. 
         [0353]    Some objects have surfaces with a number of structures that are located with a structure-to-structure distance which is larger than area from which the scanning device can detect electromagnetic signals when operating in the second configuration 
         [0354]    In  FIG. 4  is illustrated how the integrated 3D scanner can be moved from a position (here marked with the dot  417 ) where the second configuration can acquire second data sets relating to a first structure  411  on the object surface  410 , to another position  420  where second data sets relating to a second structure  412  can be acquired. After a number second data sets relating to the first structure  411  has been acquired, the integrated 3D scanner is moved slightly away from the surface to a position  416  where the field of view of the first configuration covers a larger portion of the object surface. The integrated 3D scanner is then moved further to a position  418  at which the first configuration is capable of viewing an area  4182  which is sufficiently large to provide that the first, data set acquired at position  418  relates to both the first structure  411  and the second structure  412 . While scanning the surface in the first configuration, the integrated 3D scanner is moved to position  419  where the viewed area  4192  covers the second structure. From this position  419  the integrated 3D scanner is moved towards the surface  410  until e.g. the value of the first parameter or a distance measurement reading from a distance measurement unit indicates that the scanning device is at a position  420  where it is capable of acquiring second data sets using the second configuration. The second structure  412  can then be scanned from this position  420  such that a number of second data sets are acquired. 
         [0355]    The first data sets acquired at the areas  4162 ,  4182  and  4192  of the surface then be combined by the data processing unit to provide a first virtual 3D representation of the surface in a relatively lower resolution. Since the areas  4162 ,  4182  and  4192  are overlapping and each area comprises at least one structure, the relative positions of the first structure  411  and the second structure  412  is determined with an accuracy determined by the spatial resolution of the first configuration. 
         [0356]    The second data sets acquired at the first structure  411  and the second structure  412  can then be combined with the first virtual 3D representation of the surface to provide a virtual 3D representation of the surface, where the relative position of the first and second structures is provided by the spatial resolution of the first configuration and where the resolution of the portion of the virtual 3D representation corresponding to the second structures is high. 
         [0357]      FIG. 5  shows an example of how the integrated 3D scanner can be used for scanning the surface of an object. 
         [0358]    The scanning of the structures on a surface may require that second data sets relating to the structure are acquired from a number of angles relative to the surface. This is illustrated in this figure where the integrated scanner is arranged at an angle relative to the surface which differs from the angle at which the first data sets area acquired. 
         [0359]    The integrated 3D scanner has been moved from a first position  516  relative to the surface  510 , to a second position  530  within the second range of distances, at which the second configuration can acquire second data sets of the structure  511 . The integrated 3D scanner can then acquire second data sets from a number of orientations relative to the surface. 
         [0360]      FIG. 6  show an example of the integrated 3D scanner, wherein the second configuration may provide a zooming into the surface while the integrated 3D scanner is held at a fixed position relative to the surface. 
         [0361]    In the first configuration the integrated 3D scanner is at one position  616  and views a relatively larger portion of the surface  610 . In second configuration the integrated 3D scanner is at a position  630  and views a relatively smaller portion of the surface  610 . At illustrated in this figure the two positions may coincide. The two positions may also be offset, e.g. such that the position  630  of the integrated 3D scanner in the second configuration is close to the surface, 
         [0362]    Second data sets acquired when zooming in on the structure  611  may subsequently be combined with first data sets acquired by the first configuration. 
         [0363]    The zooming may be provided by a zoom lens system known to the skilled person, and the first and second configurations of the scanning device may utilize the same array of sensor elements for detecting electromagnetic signals from the object surface that have passed through said zoom lens system. 
         [0364]      FIG. 7  shows an example where a distance, measurement unit is used to determine the distance between the integrated 3D scanner and the surface. 
         [0365]    The acquired first data sets can be used to monitor the relative position of the integrated 3D scanner and the surface. Other methods can also be applied in order to monitor the relative position, such as a distance measurement. 
         [0366]    In  FIG. 7 , the integrated 3D scanner  715  comprises a distance measurement unit  735  which is capable of determining the distance to the surface  710  along a path  7351 . 
         [0367]    The control unit can then be adapted to monitor the distance such that the second configuration starts to acquire second data set when the distance within the second range of distances. The control unit can control the acquiring of data sets based on the distance measured by the distance measurement unit  735 . 
         [0368]    When the distance as measured with the distance measurement unit  735  is within the second range of distances, the control unit automatically initiates the acquiring of second data sets with the second configuration of the scanner device. Second data sets relating to one or more structures  711 ,  712  on the surface  710  can be acquired by scanning the structures  711 ,  712  one at a time, where the second data sets are acquired in a relatively higher resolution. 
         [0369]    In addition to the acquiring of second data sets, the scanner device is capable of acquiring first data sets using the first configuration of the scanner device, where the first data sets are acquired in a relatively lower resolution. 
         [0370]    The acquired first and second data sets can be combined by the data processing unit to provide a virtual 3D representation of the surface, in which virtual 3D representation the structures  711 ,  712  are provided in a relatively higher resolution while the area between these structures is provided in a relatively lower resolution. 
         [0371]    The distance measurement unit may apply a time of flight based technique for determining the distance to the surface. 
         [0372]      FIG. 8  shows a schematic presentation of the optical system in an embodiment of the integrated 3D scanner. 
         [0373]    In this Figure is illustrated an embodiment where electromagnetic signals  8161  are received at the same location  816  by the first and the second configurations of the scanning device. When entering the scanning device  815  the electromagnetic signals  8161  are divided by an optical component  841  which guides one part of the electromagnetic signals into the first configuration  842  and one part into the second configuration  843 . The optical component may be a polarization beam splitter or a dichroic mirror separating electromagnetic signals depending on polarization or wavelength of the light, respectively. In some embodiments, the optical component  841  is a mirror arranged to be moved into and out of the beam path, such that the electromagnetic signals are guided into the first configuration  842  or the second configuration  843  depending on the optical component  841  being out of or in the path of the electromagnetic signals, respectively. 
         [0374]    In the first configuration  842 , the electromagnetic signals may be guided into a first signal manipulating arrangement  844  before being received and detected by a first signal detecting unit  845 . The signal manipulating arrangement  844  may comprise optical components such as lenses, apertures or mirrors. 
         [0375]    In the second configuration  843 , the electromagnetic signals may be guided by a mirror  846  into a second signal manipulating arrangement  847  before being received and detected by a second signal detecting unit  848 . The signal manipulating component  847  may comprise optical components such as lenses, apertures or mirrors. 
         [0376]    One advantage of such a design of the scanning device may be that it can provide an integrated 3D scanner where there is no offset between the locations where the first and second configurations receives electromagnetic signals from e.g. the surface of an object. 
         [0377]      FIG. 9  shows a schematic presentation of the optical system in an embodiment of the integrated 3D scanner. 
         [0378]    The scanning device illustrated here comprises a first configuration  942  where electromagnetic signals are guided through a first signal manipulating arrangement  944  before being received and detected by a first signal detecting unit  945 . Here the signal manipulating arrangement  944  is illustrated as having two lenses but the skilled person will acknowledge several designs that may be applied for different purposes. 
         [0379]    The second configuration  950  comprises a focus canning unit. The focus scanning unit comprises a light source  951  that may comprise collimation optics, a pattern  952 , a first camera  953 , an optical system  954  comprising a beam splitter  955  that may be polarizing, focusing optics  956 , an aperture  957 , and other optical elements  958  Some light rays emitted from the light source  951  and imaged through the optical system onto the surface of an object, returned through the optical system, and imaged onto the camera  953  are illustrated as dotted lines. During the acquisition of a data set, the focusing optics  956  is moved relative to the other optical components such that the focal plane of the second configuration is moved along the optical axis of the second configuration. In some embodiments the focus scanning unit is designed according to the focus scanning apparatus of WO 2010/145669. 
         [0380]    Focus scanning units may be used for both the first and the second configuration of the scanner device, such that a first focus scanning unit acquires one or more first data sets and a second focus scanning unit acquires one or more second data sets. 
         [0381]    A claim may refer to any of the preceding claims, and “any” is understood to mean “any one or more” of the preceding claims. 
         [0382]    It should be emphasized that the term “comprises/comprising” when used in this specification is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof. 
         [0383]    The use of the integrated 3D scanner above and in the following may be supported by software which is carried out on a data handling system by the execution of computer-executable instructions. The instructions may be program code means loaded in a memory, such as a RAM, from a storage medium or from another computer via a computer network. Alternatively, the integrated 3D scanner may be implemented by hardwired circuitry instead of software or in combination with software.