AU2004222472B2 - Apparatus and method for light control in an in-vivo imaging device - Google Patents

Apparatus and method for light control in an in-vivo imaging device Download PDF

Info

Publication number
AU2004222472B2
AU2004222472B2 AU2004222472A AU2004222472A AU2004222472B2 AU 2004222472 B2 AU2004222472 B2 AU 2004222472B2 AU 2004222472 A AU2004222472 A AU 2004222472A AU 2004222472 A AU2004222472 A AU 2004222472A AU 2004222472 B2 AU2004222472 B2 AU 2004222472B2
Authority
AU
Australia
Prior art keywords
light
illumination
imaging
unit
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
AU2004222472A
Other versions
AU2004222472A1 (en
Inventor
Dov Avni
Arkady Glukhovsky
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Given Imaging Ltd
Original Assignee
Given Imaging Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Given Imaging Ltd filed Critical Given Imaging Ltd
Publication of AU2004222472A1 publication Critical patent/AU2004222472A1/en
Application granted granted Critical
Publication of AU2004222472B2 publication Critical patent/AU2004222472B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/06Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor with illuminating arrangements
    • A61B1/0607Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor with illuminating arrangements for annular illumination
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/06Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor with illuminating arrangements
    • A61B1/0655Control therefor
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/06Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor with illuminating arrangements
    • A61B1/0661Endoscope light sources
    • A61B1/0684Endoscope light sources using light emitting diodes [LED]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/145Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
    • A61B5/14539Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue for measuring pH
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/04Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor combined with photographic or television appliances
    • A61B1/041Capsule endoscopes for imaging
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/01Measuring temperature of body parts ; Diagnostic temperature sensing, e.g. for malignant or inflamed tissue

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Optics & Photonics (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Pathology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Endoscopes (AREA)
  • Studio Devices (AREA)
  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)

Description

WO 2004/082472 PCT/IL2004/000265 APPARATUS AND METHOD FOR LIGHT CONTROL IN AN IN-VIVO IMAGING DEVICE BACKGROUND OF THE INVENTION 5 Devices and methods for performing in-vivo imaging of passages or cavities within a body are known in the art. Such devices may include, inter alia, various endoscopic imaging systems and devices for performing imaging in various internal body cavities. Reference is now made to Fig. 1 which is a schematic diagram 10 illustrating an embodiment of an autonomous in-vivo imaging device. The device 1OA typically includes an optical window 21 and an imaging system for obtaining images from inside a body cavity or lumen, such as the GI tract. The imaging system includes an illumination unit 23. The illumination unit 23 may include one or more discrete light sources 23A, or may include only one light source 23A. 15 The one or more light sources 23A may be a white light emitting diode (LED), or any other suitable light source, known in the art. The device 10A includes a CMOS imaging sensor 24, which acquires the images and an optical system 22 which focuses the images onto the CMOS imaging sensor 24. The illumination unit 23 illuminates the inner portions of the body lumen through an optical 20 window 21. Device I A further includes a transmitter 26 and an antenna 27 for transmitting the video signal of the CMOS imaging sensor 24, and one or more power sources 25. The power source(s) 25 may be any suitable power sources such as but not limited to silver oxide batteries, lithium batteries, or other electrochemical cells having a high energy density, or the like. The power 25 source(s) 25 may provide power to the electrical elements of the device I A. Typically, in the gastrointestinal application, as the device 10A is transported through the gastrointestinal (GI) tract, the imager, such as but not limited to the multi-pixel CMOS sensor 24 of the device 10A acquires images (frames) which are processed and transmitted to an external receiver/recorder 30 (not shown) worn by the patient for recording and storage. The recorded data may then be downloaded from the receiver/recorder to a computer or workstation 1 WO 2004/082472 PCT/IL2004/000265 (not shown) for display and analysis. Other systems and methods may also be suitable. During the movement of the device 10A through the GI tract, the imager may acquire frames at a fixed or at a variable frame acquisition rate. For 5 example, the imager (such as, but not limited to the CMOS sensor 24 of Fig. 1) may acquire images at a fixed rate of two frames per second (2 Hz). However, other different frame rates may also be used, depending, inter alia, on the type and characteristics of the specific imager or camera or sensor array implementation that is used, and on the available transmission bandwidth of the 10 transmitter 26. The downloaded images may be displayed by the workstation by replaying them at a desired frame rate. According to this implementation, the expert or physician examining the data may be provided with a movie-like video playback, which may enable the physician to review the passage of the device through the GI tract. 15 One of the limitations of electronic imaging sensors is that they may have a limited dynamic range. The dynamic range of most existing electronic imaging sensors is significantly lower than the dynamic range of the human eye. Thus, when the imaged field of view includes both dark and bright parts or imaged objects, the limited dynamic range of the imaging sensor may result in 20 underexposure of the dark parts of the field of view, or overexposure of the bright parts of the field of view, or both. Various methods may be used for increasing the dynamic range of an imager. Such methods may include changing the amount of light reaching the imaging sensor, such as for example by changing the diameter of an iris or 25 diaphragm included in the imaging device to increase or decrease the amount of light reaching the imaging sensor, methods for changing the exposure time, methods for changing the gain of the imager or methods for changing the intensity of the illumination. For example, in still cameras, the intensity of the flash unit may be changed during the exposure of the film. 30 When a series of consecutive frames is imaged such as in video cameras, the intensity of illumination of the imaged field of view within the 2 -3 currently imaged frame may be modified based on the results of measurement of light intensity performed in one or more previous frames. This method is based on the assumption that the illumination conditions do not change 5 abruptly from one frame to the consecutive frame. However, in an in vivo imaging device, for example, for imaging the GI tract, which may operate at low frame rates and which is moved through a body lumen (e.g. propelled by the peristaltic movements of the intestinal 10 walls), the illumination conditions may vary significantly from one frame to the next frame. Therefore, methods of controlling the illumination based on analysis of data or measurement results of previous frames may not be always feasible, particularly at low frame rates. is Therefore, there is a need for an imaging device that provides more accurate illumination, possibly tailored to particular in-vivo illumination requirements or environmental conditions. SUMMARY OF THE INVENTION 20 Some embodiments of the present invention include a device and method for operating an in vivo imaging device wherein the illumination produced by the device may be varied in intensity and/or duration according to, for example, the amount of illumination produced by the 25 device, which is reflected back to the device. In such a manner, the illumination can be controlled and made more efficient. In accordance with one aspect of the invention there is provided an in vivo imaging device comprising: 30 a light source; an imager; and a controller, wherein the controller is to, during an imaging period, operate the light source to emit white light, record the amount of the white light that is 35 reflected to the imaging device, control the image gain level of the imager based on the amount of the white light that is reflected to the imaging device, and capture and 22829851 (GHMatters) 16106/10 -3A transmit an image frame; measuring at least one environment parameter in at least one environment surrounding the device; and when an environmental change is determined, changing s the operating mode of the device In accordance with a second aspect of the invention there is provided a method for changing the operation mode of an in vivo device comprising an imager, a light source, and a controller, the method comprising: 10 across a series of imaging periods, operating the light source to emit white light, recording the amount of the white light that is reflected to the imaging device, in response to the recorded amount, controlling an image gain level of the imager based on the amount of the white 15 light that is reflected to the imaging device, and capturing and transmitting an image frame; measuring at least one environment parameter in at least one environment surrounding the device; and when an environmental change is determined, changing 20 the operating mode of the device. According to some embodiments of the present invention, a method for implementing light control in an in vivo device is provided. Accordingly, the parameters such as exposure time and/or the gain factor, or other 25 parameters, for transmitting the recorded light may be altered. For example, the gain factor may be altered as a function of a light saturation level measured at at least one interval within the frame exposure period. In such a manner the in vivo device can prevent cases of over and 30 under exposure, in addition to helping to ensure that exposure ceases after full exposure is attained. 22829851 (GHMatters) 16/06/10 WO 2004/082472 PCT/IL2004/000265 According to some embodiments of the present invention, a method is provided for detecting problematic pixels in an imaging device. This method may enable defining and/or excluding problematic or non-functional pixels, for example based on an initial short exposure that enables a threshold saturation 5 level to be reached only for problematic pixels. According to some embodiments of the present invention, a method is provided for determining when an in vivo imaging device has entered a particular part of a body. Accordingly, environmental measurement devices may be used to detect environmental parameters, such as pH levels and temperature levels etc. 10 Results recorded from these measurement devices may be used to define areas, regions, organs etc. wherein the in vivo device may be or may have been located. The device mode may be changed in accordance with the resulting definition. According to some embodiments of the present invention, a method is 15 provided for determining when an in vivo imaging device has entered a body, using dark frames. For example, when dark frames require substantial gain factor to attain full exposure, the device may be defined as being inside a body (a dark environment). The device mode may be changed in accordance with the resulting definition. 20 BRIEF DESCRIPTION OF THE DRAWINGS The present invention is herein described, by way of example only, with reference to the accompanying drawings, in which like components are designated by like reference numerals, it being understood that these drawings 25 are given for illustrative purposes only and are not meant to be limiting, wherein: Fig. 1 is a schematic diagram illustrating an embodiment of a prior art autonomous in-vivo imaging device; Fig. 2 is a schematic block diagram illustrating part of an in-vivo imaging device having an automatic illumination control system, in accordance with an 30 embodiment of the present invention; 4 WO 2004/082472 PCT/IL2004/000265 Fig. 3 is a schematic cross-sectional view of part of an in-vivo imaging device having an automatic illumination control system and four light sources, in accordance with an embodiment of the present invention; Fig. 4 is a schematic front view of the device illustrated in Fig. 3; 5 Fig. 5 is a schematic diagram illustrating a method of timing of the illumination and image acquisition in an in vivo imaging device having a fixed illumination duration, according to an embodiment of the invention; Fig. 6 is a schematic diagram illustrating one possible configuration for an illumination control unit coupled to a light sensing photodiode and to a light 10 emitting diode, in accordance with an embodiment of the present invention; Fig. 7 is a schematic diagram illustrating the illumination control unit of Fig. 6 in detail, in accordance with an embodiment of the present invention; Fig. 8 is a schematic diagram useful for understanding a method of timing of the illumination and image acquisition in an in vivo imaging device having a 15 variable controlled illumination duration, according to an embodiment of the invention; Fig. 9 is a schematic diagram useful for understanding a method of timing of the illumination and image acquisition in an in vivo imaging device having a variable frame rate and a variable controlled illumination duration according to an 20 embodiment of the invention; Fig IA is a timing diagram schematically illustrating an imaging cycle of an in vivo imaging device using an automatic illumination control method, in accordance with another embodiment of the present invention; Fig. 1 OB is a schematic exemplary graph representing the light intensity as 25 a function of time, possible when using a method of automatic illumination control, according to an embodiment of the invention, for example as illustrated in Fig. 10A; Fig. 10C is another exemplary schematic graph representing another example of the light intensity as a function of time, possible when using a method 30 of automatic illumination control, according to an embodiment of the invention, illustrated in Fig. 1OA; 5 WO 2004/082472 PCT/IL2004/000265 Fig. 11 is a schematic diagram illustrating an illumination control unit including a plurality of light sensing units for controlling a plurality of light sources, in accordance with an embodiment of the present invention; Fig. 12 is a schematic diagram illustrating a front view of an autonomous 5 imaging device having four light sensing units and four light sources, in accordance with an embodiment of the present invention; Fig. 13 is a schematic top view illustrating the arrangement of pixels on the surface of a CMOS imager usable for illumination control, in accordance with an embodiment of the present invention; 10 Fig. 14 is a schematic top view of the pixels of a CMOS imager illustrating an exemplary distribution of control pixel groups suitable for being used in local illumination control in an imaging device, according to an embodiment of the invention; Fig. 15 is a schematic exemplary graph representing the light saturation as 15 a function of pixel output and time, possibly when implementing light control, according to an embodiment of the invention; Fig. 16A depicts a series of steps of a method according to an embodiment of the present invention; Fig. 16B depicts a series of steps of a method according to an alternate 20 embodiment of the present invention; and Fig. 16C depicts a series of steps of a method according to an additional embodiment of the present invention. 25 DETAILED DESCRIPTION OF THE INVENTION Various aspects of the present invention are described herein. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the present invention. However, it will also be apparent to one skilled in the art that the present invention may be 30 practiced without the specific details presented herein. Furthermore, well known 6 WO 2004/082472 PCT/IL2004/000265 features may be omitted or simplified in order not to obscure the present invention. Some embodiments of the present invention are based, inter alia, on controlling the illumination provided by the in-vivo imaging device based on light 5 measurement which is performed within the duration of a single frame acquisition time or a part thereof. It is noted that while the embodiments of the invention shown hereinbelow are adapted for imaging of the gastrointestinal (GI) tract, the devices and methods disclosed herein may be adapted for imaging other body cavities or 10 spaces. Reference is now made to Fig. 2 which is a schematic block diagram illustrating part of an in-vivo imaging device having an automatic illumination control system, in accordance with an embodiment of the present invention. The device 30 may be constructed as a swallowable video capsule as disclosed for 15 the device 10A of Fig.1 or in U.S. patent 5,604,531 to Iddan et al., or in Co-pending PCT Patent Application, Publication no. WO 01/65995 to Glukhovsky et al, both hereby incorporated by reference in their entirety. However, the system and method of the present invention may be used in conjunction with other in-vivo imaging devices. 20 The device 30 may include an imaging unit 32 adapted for imaging the GI tract. The imaging unit 32 may include an imaging sensor (not shown in detail), such as but not limited to the CMOS imaging sensor 24 of Fig. 1. However, the imaging unit 32 may include any other suitable type of imaging sensor known in the art. The imaging unit 32 may also include an optical unit 32A including one or 25 more optical elements (not shown), such as one or more lenses (not shown), one or more composite lens assemblies (not shown), one or more suitable optical filters (not shown), or any other suitable optical elements (not shown) adapted for focusing an image of the G1 tract on. the imaging sensor as is known in the art and disclosed hereinabove with respect to the optical unit 22 of Fig. 1. 30 The optical unit 32A may include one or more optical elements (not shown) which are integrated with the imaging unit 32A, such as for example, a 7 WO 2004/082472 PCT/IL2004/000265 lens (not shown) which is attached to, or mounted on, or fabricated on or adjacent to the imager light sensitive pixels (not shown) as is known in the art. The device 30 may also include a telemetry unit 34 suitably connected to the imaging unit 32 for telemetrically transmitting the images acquired by the 5 imaging unit 32 to an external receiving device (not shown), such as but not limited to the receiver/recorder device disclosed in U.S. patent 5,604,531 to Iddan et al., or in Co-pending PCT Patent Application, Publication No. WO 01/65995to Glukhovsky et al. The device 30 may also include a controller/processor unit 36 suitably 10 connected to the imaging unit 32 for controlling the operation of the imaging unit 32. The controller/processor unit 36 may comprise any suitable type of controller, such as but not limited to, an analog controller, a digital controller such as, for example, a data processor, a microprocessor, a micro-controller, or a digital signal processor (DSP). The controller/processor unit 36 may also 15 comprise hybrid analog/digital circuits as are known in the art. The controller/ processor unit 36 may be suitably connected to the telemetry unit 34 for controlling the transmission of image frames by the telemetry unit 34. The controller/processor unit 36 may be (optionally) suitably connected to the imaging unit 32 for sending control signals thereto. The controller/processor 20 unit 36 may thus (optionally) control the transmission of image data from the imaging unit 32 to the telemetry unit 34. The device 30 may include an illuminating unit 38 for illuminating the GI tract. The illuminating unit 38 may include one or more discrete light sources 38A, 38B, to 38N or may include only one light source; such light source(s) may 25 be, for example, but are not limited to, the light sources 23A of Fig. 1. The light sources) 38A, 38B, to 38N of the illuminating unit 38 may be white light emitting diodes, such as the light sources disclosed in co-pending PCT Patent Application, Publication No. WO 01/65995 to Glukhovsky et al. However, the light source(s) 38A, 38B, 38N of the illuminating unit 38 may also be any other 30 suitable light source, known in the art, such as but not limited to incandescent 8 WO 2004/082472 PCT/IL2004/000265 lamp(s), flash lamp(s) or gas discharge lamp(s), or any other suitable light source(s). It is noted that, in accordance with another embodiment of the present invention, the in vivo imaging device may include a single light source (not 5 shown). The device 30 may also include an illumination control unit 40 suitably connected to the light sources 38A, 38B, to 38N of the illuminating unit 38 for controlling the energizing of the light sources 38A, 38B, to 38N of the illuminating unit 38. The illumination control unit 40 may be used for switching one or more of 10 the light sources 38A, 38B, to 38N on or off, and/or for controlling the intensity of the light produced by one or more of the light sources 38A, 38B, to 38N, as is disclosed in detail hereinafter. The controller/processor unit 36 may be suitably connected to the illumination control unit 40 for (optionally) sending control signals thereto. Such 15 control signals may be used for synchronizing or timing the energizing of the light sources 38A, 38B, 38N within the illuminating unit 38, relative to the imaging cycle or period of the imaging unit 32. The illumination control unit 40 may be (optionally) integrated within the controller/processor unit 36, or may be a separate controller. In some embodiments, illumination control unit 40 and/or 20 controller/processor unit 36 may be part of telemetry unit 34. The device 30 may further include a light sensing unit(s) 42 for sensing the light produced by the illuminating unit 38 and reflected from the walls of the GI tract. The light sensing unit(s) 42 may comprise a single light sensitive device or light sensor, or a plurality of discrete light sensitive device(s) or light sensor(s), 25 such as but not limited to, a photodiode, a phototransistor, or the like. Other types of light sensors known in the art and having suitable characteristics may also be used for implementing the light sensing unit or units of embodiments of the present invention. The light sensing unit(s) 42 may be suitably connected to the illumination 30 control unit 40 for providing the illumination control unit 40 with a signal representative of the intensity of the light reflected from the walls of the 9 WO 2004/082472 PCT/IL2004/000265 gastrointestinal tract (or any other object within the field of view of the imaging unit 32). In operation, the illumination control unit 40 may process the signal received from the light sensing unit(s) 42 and, based on the processed signal, may control the operation of the light source(s) 38A, 38B, to 38N as is disclosed 5 in detail hereinabove and hereinafter. The device 30 may also include a power source 44 for providing power to the various components of the device 30. It is noted that for the sake of clarity of illustration, the connections between the power source 44 and the circuits or components of the device 30 which receive power therefrom, are not shown in 10 detail. The power source 44 may be, for example, an internal power source similar to the power source(s) 25 of the device 1 OA, e.g., a battery or other power source. However, if the device 30 is configured as an insertable device (such as, for example, an endoscope-like device or a catheter -like device, or any other type of in vivo imaging device known in the art), the power source 44 may also be 15 an external power source which may be placed outside the device 30 (such an external configuration is not shown in Fig. 2 for the sake of clarity of illustration). In such an embodiment having an external power source (not shown), the external power source (not shown) may be connected to the various power requiring components of the imaging device through suitable electrical 20 conductors (not shown), such as insulated wires or the like. It is noted that while for autonomous or swallowable in-vivo imaging device such as the device 10A the power source(s) 25 are preferably (but not necessarily) compact power sources for providing direct current (DC), external power sources may be any suitable power sources known in the art, including but 25 not limited to power sources providing alternating current (AC) or direct current or may be power supplies couples to the mains as is known in the art. The various functions and processes implemented by the swallowable in-vivo imaging device may be executed by, for example, a processor unit (e.g., unit 36 in Fig. 2). These functions and processes may be implemented by the 30 processor unit 36 alone, and/or by alternative units, such as illumination control unit 40, telemetry unit 34, light sensing units 42, imaging unit 32 etc., or any 10 WO 2004/082472 PCT/IL2004/000265 combination of units. The various units may optionally be integrated within the processor unit 36, such that the processor unit can be said to implement any of the functions and processes herein described. The methods and processes described may be also embodied in other sensing devices having other 5 structures and other components. Reference is now made to Figs. 3 and 4. Fig. 3 is a schematic cross-sectional view of part of an in-vivo imaging device having an automatic illumination control system and four light sources, in accordance with an embodiment of the present invention. Fig. 4 is a schematic front view of the 10 device illustrated in Fig. 3. The device 60 (only part of which is shown in Fig. 3) includes an imaging unit 64. The imaging unit 64 may be similar to the imaging unit 32 of Fig. 2 or to the imaging unit 24 of Fig.1. Preferably, the imaging unit 64 may be a CMOS imaging unit, but other different types of imaging units may be also used. The 15 imaging unit 64 may include CMOS imager circuitry, as is known in the art, but may also include other types of support and or control circuitry therein, as is known in the art and disclosed, for example, in U.S. patent 5,604,531 to Iddan et al., or in Co-pending PCT Patent Application, Publication No. WO 01/65995 to Glukhovsky et al. The device 60 also includes an optical unit 62 which may 20 comprise a lens or a plurality of optical elements as disclosed hereinabove for optical unit 22 of Fig. 1 and the optical unit 32A of Fig. 2. The device 60 may include an illuminating unit 63, which may include four light sources 63A, 63B, 63C and 63D which may be disposed within the device 60 as shown in Fig. 4. The light sources 63A, 63B, 63C and 63D may be the 25 white LED light sources or as disclosed, for example, in Co-pending US Patent Application, PCT Patent Application, Publication No. WO 01/65995 to Glukhovsky et al., but may also be any other suitable type of light sources, including but not limited to, infrared light sources, monochromatic light sources, band limited light sources known in the art or disclosed hereinabove. 30 It is noted that while in accordance with one embodiment of the present invention the light sources 63A, 63B, 63C and 63D are shown to be identical, 11 WO 2004/082472 PCT/IL2004/000265 other embodiments of the invention may be implemented with multiple light sources which may not be identical. Some of the light sources may have a spectral distribution, which is different than the spectral distribution of the other light sources. For example, of the light sources within the same device, one of 5 the light sources may be a red LED, another light source may be a blue LED and another light source may be a yellow LED. Other configurations of light sources are also possible. The device 60 may also include a baffle 70, which may be conically shaped or which may have any other suitable shape. The baffle 70 may have an 10 aperture 70A therein. The baffle 70 may be interposed between the light sources 63A, 63B, 63C and 63D and the optical unit 62 and may reduce the amount of light coming directly from the light sources 63A, 63B, 63C and 63D to enter the aperture 70A. The device 60 may include a transparent optical dome 61 similar to the optical dome 21 of Fig. 1. The optical dome 61 may be made from a 15 suitable transparent plastic material or glass or from any other suitable material which is sufficiently transparent to at least some of the wavelengths of light produced by the light sources 63A, 63B, 63C and 63D to allow for adequate imaging. The device 60 may further include at least one light sensing unit 67 for 20 sensing light, which is reflected from or diffused by the intestinal wall 76. The light sensing unit may be attached to the baffle 70 such that its light sensitive part 67A faces the optical dome 61. Preferably, but not necessarily, the light sensing unit 67 may be positioned on the surface of baffle 70 at a position which allows the light sensing unit 67 to sense an amount of light which is representative or 25 proportional to the amount of light entering the aperture 70A of the baffle 70. This may be true when the illuminated object is semi-diffusive (as the intestinal surface may be), and when the size of the light sensing unit 67 and its distance from the imaging sensor axis 75 are small compared to the diameter D of the capsule like device 60. 30 The device 60 (Fig. 3) is illustrated as being adjacent to the intestinal wall 76. In operation, light rays 72 which are generated by the light sources 63A, 12 WO 2004/082472 PCT/IL2004/000265 63B, 63C and 63D may penetrate the optical dome 61 and may be reflected from the intestinal wall 76. Some of the reflected light rays 74 may reach the light-sensing unit 67. Other reflected light rays (not shown) may reach the aperture 70A and pass the optical unit 62 to be focused on the imaging unit 64. 5 The amount of light measured by the light-sensing unit 67 may be proportional to the amount of light entering the aperture 70A. Thus, the measurement of the light intensity reaching the light sensing unit 67 may be used to determine the light output of the light sources 63A, 63B, 63C and 63D as is disclosed in detail hereinafter. 10 The device 60 also includes an illumination control unit 40A. The illumination control unit 40A is suitably coupled to the light sensing unit 67 and to the illuminating unit 63. The illumination control unit 40A may process the signal received from the light sensing unit 67 to control the light sources 63A, 63B, 63C and 63D as is disclosed in detail hereinafter. 15 The device 60 may also include a wireless transmitter unit (not shown in Fig. 3) and an antenna (not shown in Fig. 3), such as but not limited to the transmitter 26 and the antenna 27 of Fig. 1 or may include any suitable telemetry unit (such as, but not limited to the telemetry unit 34 of Fig. 2). The telemetry unit may be a transmitter or a transceiver, for wirelessly transmitting (and optionally 20 also receiving) data and control signals to (and optionally from) an external receiver/recorder (not shown in Fig. 3) as disclosed in detail hereinabove. The device 60 may also include one or more power sources such as, for example, the power sources 25 of Fig. 1, or any other suitable power sources, known in the art. 25 Reference is now made to Fig. 5 which is a schematic diagram illustrating a method of timing of the illumination and image acquisition in an in vivo imaging device having a fixed illumination duration. The timing method may be characteristic for imaging devices having CMOS imagers but may also be used in devices having other types of imagers. 30 An image acquisition cycle or period starts at the time T. The first image acquisition cycle ends at time TI and has a duration AT1. The second image 13 WO 2004/082472 PCT/IL2004/000265 acquisition cycle starts at time T1, ends at time T2 and has a duration AT1. Each imaging cycle or period may comprise two parts, an illumination period 90 having a duration AT2, and a dark period 92 having a duration AT3. The illumination periods 90 are represented by the hashed bars of Fig. 5. During the illumination 5 period 90 of each imaging cycle, the illumination unit (such as but not limited to the illuminating unit 38 of Fig. 2, or the illuminating unit 63 of Fig. 3) is turned on and provides light for illuminating the intestinal wall. During the dark period 92 of each imaging cycle, the illuminating unit (such as but not limited to the illuminating unit 38 of Fig. 2, or the illuminating unit 63 of Fig. 3) is switched off 10 and does not provide light. The dark period 92, or a part thereof, may be used for, for example, to acquiring an image from the imager by, for example, scanning the pixels of the imager and for processing the imager output signals and for transmitting the output signals or the processed output signals to an external receiver or 15 receiver/recorder device, as disclosed hereinabove. It is noted that while for the sake of simplicity, the diagram of Fig. 5 illustrates a case in which the image acquisition cycle duration is fixed, and imaging is performed at a fixed frame rate, this is not mandatory. Thus, the frame rate and therefore the image acquisition cycle duration may vary during 20 imaging in accordance with a measured parameter such as, for example the velocity of the imaging device within the gastrointestinal tract. Generally, different types of light control methods may be used for ensuring adequate image acquisition. In a first method, the amount of light impinging on the light sensing unit 67 25 may be continuously measured and recorded during the illumination of the target tissue by the illuminating unit 63 to provide a cumulative value representative of the total cumulative number of photons detected by the light sensing unit 67. When this cumulative value reaches a certain value, the illuminating unit 63 may be shut off by switching off the light sources 63A, 63B, 63C, and 63D included in 30 the illuminating unit 63. In this way the device 60 may ensure that when the 14 WO 2004/082472 PCT/IL2004/000265 quantity of measured light is sufficient to result in an adequately exposed frame (on the average), the illuminating unit 63 is turned off. One advantage of the first method is that if the light sources (such as the light sources 63A, 63B, 63C, and 63D) are operated at their maximal or nearly 5 maximal light output capacity, the switching off may save energy when compared to the energy expenditure in a fixed duration illumination period (such as the illumination period 90 of Fig. 5). Another advantage of the first method is that it enables the shortening of the duration of the illumination period within the imaging cycle in comparison with 10 using a fixed illumination period. In a moving imaging device, such as the device 60, ideally, it may be desirable to have the illumination period as short as practically possible, since this prevents or reduces image smearing due to the movement of the device 60 within the GI tract. Thus, typically, in a moving imaging device, the shorter the illumination period, the sharper will the resulting 15 image be (assuming that enough light is generated by the illuminating unit to ensure adequate imager exposure). This may be somewhat similar to the increasing of the shutter speed in a regular shutter operated camera in order to decrease the duration of exposure to light to prevent smearing of the image of a moving object or image, except that in 20 embodiments of the present method there is typically no shutter and the illumination period is being shortened controllably to reduce image smearing due to device movements in the GI tract. Reference is now made to Figs. 6 and 7. Fig. 6 is a schematic diagram illustrating one possible configuration for an illumination control unit coupled to a 25 light sensing photodiode and to a light emitting diode, in accordance with an embodiment of the present invention. Fig. 7 is a schematic diagram illustrating the illumination control unit of Fig. 6 in detail, in accordance with an embodiment of the present invention. The illumination control unit 40B of Fig. 6 may be suitably connected to a 30 photodiode 67B, which may be operated as a light sensing unit. Any other suitable sensing unit or light sensor may be used. The illumination control unit 15 WO 2004/082472 PCT/IL2004/000265 40B may be suitably connected to a light emitting diode (LED) 63E. The LED 63E may be a white LED as disclosed hereinabove or may be any other type of LED suitable for illuminating the imaged target (such as the gastrointestinal wall). The illumination control unit 40B may receive a current signal from the 5 photodiode 67B. The received signal may be proportional to the intensity of light (represented schematically by the arrows 81) impinging the photodiode 67B. The illumination control 40B may process the received signal to determine the amount of light that illuminated the photodiode 67B within the duration of a light measuring time period. The illumination control 40B may control the energizing 10 of the LED 63E based on the amount of light that illuminated the photodiode 67B within the duration of the light measuring time period. Examples of the type of processing and control of energizing are disclosed in detail hereinafter. The illumination control unit 40B may also receive control signals from other circuitry components included in the in vivo imaging device. For example, the control 15 signals may include timing and/or synchronization signals, on/off switching signals, reset signals, or the like. The light sensing unit(s) and light producing unit(s) may be any suitable light producing or sensing units other than diodes. Fig. 7 illustrates one possible embodiment of the illumination control unit 20 40B. The illumination control unit 40B may include, for example, an integrator unit 80, a comparator unit 82 and a LED driver unit 84. The integrator unit 80 is coupled to the photodiode 67B to receive therefrom a signal indicative of the intensity of the light impinging on the photodiode 67B, and to record and integrate the amount of light impinging on the photodiode 67B. The integrator unit 80 may 25 be suitably connected to the comparator unit 82. The integrator unit 80 may record and integrate the amount of light impinging on the photodiode 67B, integrating the received signal, and output an integrated signal to the comparator unit 82. The integrated signal may be proportional to or indicative of the cumulative number of photons hitting the 30 photodiode 67B over the integration time period. The comparator unit 80 may be suitably connected to the LED driver unit 84. The comparator unit 80 may 16 WO 2004/082472 PCT/IL2004/000265 continuously compare the value of the integrated signal to a preset threshold value. When the value of the integrated signal is equal to the threshold value, the comparator unit 82 may control the LED driver unit 84 to switch off the power to the LED 63E and thus cease the operation of the LED 63E. 5 Thus, the illumination control unit 40A may be constructed and operated similar to the illumination control unit 40B of Figs. 7 and 8. It is noted that while the circuits illustrated in Fig. 7 may be implemented as analog circuits, digital circuits and/or hybrid analog/digital circuits may be used in implementing the illumination control unit, as is disclosed in detail hereinafter 10 (with respect to Fig. 11). Reference is now made to Fig. 8, which is a schematic diagram useful for understanding a method of timing of the illumination and image acquisition in an in vivo imaging device having a variable controlled illumination duration, according to one embodiment. 15 An image acquisition cycle or period starts at the time T. The first image acquisition cycle ends at time T1 and has a duration AT1. The second image acquisition cycle starts at time T1, ends at time T2 and has a duration ATI. In each imaging cycle, the time period having a duration AT4 defines the maximal allowable illumination period. The maximal allowable illumination period AT4 20 may typically be a time period which is short enough as to enable imaging without excessive image smearing or blurring due to the movement of the device 60 within the GI tract. The time TM is the time of the end of the maximal allowable illumination period AT4 relative to the beginning time of the first imaging cycle. 25 The maximal allowable illumination period AT4 may be factory preset taking into account, inter alia, the typical or average (or maximal) velocity reached by the imaging device within the GI tract, (as may be determined empirically in a plurality of devices used in different patients), the type of the imaging sensor (such as, for example, the CMOS sensor 64 of the device 50) 30 and its scanning time requirements, and other manufacturing and timing considerations. In accordance with one implementation of the invention, when 17 WO 2004/082472 PCT/IL2004/000265 imaging at 2 frames per second AT1= 0.5 second, the duration of AT4 may be set to have a value in the range of 20-30 milliseconds. However, this duration is given by way of example only, and AT4 may have other -different values. Typically, the use of a maximal allowable illumination period AT4 of less than 30 5 milliseconds may result in acceptable image quality of most of the acquired image frames without excessive degradation due to blurring of the image resulting from movement of the imaging device within the GI tract. The time period AT5 is defined as the difference between the entire imaging cycle duration ATI and the maximal allowable illumination period AT4 10 (AT5 = AT1 - AT4). At the time of beginning T of the first imaging cycle, the illumination unit (such as but not limited to the illuminating unit 63 of Fig. 3) is turned on and provides light for illuminating the intestinal wall. The light sensing unit 67 senses the light reflected and/or diffused from the intestinal wall 76 and provides a signal 15 to the illumination control unit 40A of the device 60. The signal may be proportional to the average amount of light entering the aperture 70A. The signal provided by the light sensing unit 67 may be integrated by the illumination control unit 40A as is disclosed in detail hereinabove with respect to the illumination control unit 40B of Figs. 7 and 8. 20 The integrated signal may be compared to a preset threshold value (for example by a comparator such as the comparator unit 82 of Fig. 7). When the integrated signal is equal to the threshold value, the illumination control unit 40A ceases the operation of the light sources 63A, 63B, 63C and 63D of the illuminating unit 63. The time TE1 is the time at which the illuminating control unit 25 turns off the light sources 63A, 63B, 63C and 63D within the first imaging cycle. The time interval beginning at time T and ending at time TE1 is the illumination period 94 (represented by the hashed bar labeled 94) for the first imaging cycle. The illumination period 94 has a duration of AT6. It may be seen that for the first imaging cycle AT6 < AT4. 18 WO 2004/082472 PCT/IL2004/000265 After the time TE1 the scanning of the pixels CMOS sensor 64 may begin and the pixel data (and possibly other data) may be transmitted by the transmitter (not shown in Fig. 3) or telemetry unit-of the device 60. Preferably, the scanning (read out) of the pixels of the CMOS sensor 64 5 may begin as early as the time TE1 of the termination of the illumination. For example the illumination control unit 40A may send a control signal to the CMOS sensor at time TE1 to initiate the scanning of the pixels of the CMOS sensor 64. However, the scanning of the pixels may also begin at a preset time after the time TM which is the ending time of the maximal allowable illumination period 10 AT4, provided that sufficient time is available for pixel scanning and data transmission operations. According to one embodiment, keeping the start of readout time fixed, for example at TM, may enable simpler implementation of the receiving unit. At the time of beginning T1 of the second imaging cycle, the illuminating 15 unit 63 is turned on again. The light sensing unit 67 senses the light reflected and/or diffused from the intestinal wall 76 and provides a signal to the illumination control unit 40A of the device 60. The signal may be proportional to the average amount of light entering the aperture 70A. The signal provided by the light sensing unit 67 may be integrated and 20 compared to the threshold value as disclosed hereinabove for the first imaging cycle. When the integrated signal is equal to the threshold value, the illumination control unit 40A turns off the light sources 63A, 63B, 63C and 63D of the illuminating unit 63. However, in the particular schematic example illustrated in Fig. 8, the intensity of light reaching the light sensing unit 67 in the second 25 imaging cycle is lower than the intensity of light reaching the light sensing unit 67 in the first imaging cycle. This difference of the illumination intensity or intensity versus time profile between different imaging cycle may be due to, inter alia, movement of the device 60 away from the intestinal wall 76, or a change of the position or 30 orientation of the device 60 with respect to the intestinal wall 76, or a change in 19 WO 2004/082472 PCT/IL2004/000265 the light absorption or light reflecting or light diffusion properties of the part of the intestinal wall 76 which is within the field of view of the device 60. Therefore it takes longer for the integrated signal output of the integrator unit to reach the threshold value. Therefore, the illumination control unit 40A 5 turns the illuminating unit 63 off at a time TE2 (it is noted that TE2 >TE1 ). The time interval beginning at time TI and ending at time TE2 is the illumination period 96 for the second imaging cycle. The illumination period 96 (represented by the hashed bar labeled 96) has a duration AT7. It may be seen that for the second imaging cycle AT7< AT4. 10 Thus, the duration of the illumination period within different imaging cycles may vary and may depend, inter alia, on the intensity of light reaching the light sensing unit 67. After the time TE2 the scanning of the pixels CMOS sensor 64 may begin and the pixel data (and possibly other data) may be transmitted as disclosed in 15 detail hereinabove for the first imaging cycle of Fig. 8. It is noted that while for the sake of simplicity, the diagram of Fig. 8 illustrates a case in which the image acquisition cycle duration AT1 is fixed, and imaging is performed at a fixed frame rate, this is not mandatory. Thus, the frame rate and therefore the image acquisition cycle duration ATI may vary 20 during imaging in accordance with a measured parameter such as, for example the velocity of the imaging device within the gastrointestinal tract. In such cases, the duration of the imaging cycle may be shortened or increased in response to the measured velocity of the device 60 in order to increase or decrease the frame rate, respectively. 25 For example, co-pending U.S. patent Application, Serial Number 09/571,326, filed May 15, 2000, co-assigned to the assignee of the present application, incorporated herein by reference in its entirety for all purposes, discloses, inter alia, a device and method for controlling the frame rate of an in-vivo imaging device. 30 The automatic illumination control methods disclosed hereinabove may be adapted for use in device having variable frame rate. Such adaptation may take 20 WO 2004/082472 PCT/IL2004/000265 into account the varying duration of the imaging cycle and the implementation may depend, inter alia, on the amount of time required to complete the pixel scanning and the data transmission, the available amount of power available to the device 60, and other considerations. 5 A simple way of adapting the method may be to limit the maximal frame rate of the imaging device, such that even when the maximal frame rate is being used, there will be enough time left for pixel scanning and data transmission within the time period. Reference is now made to Fig. 9, which is a schematic diagram useful for 10 understanding a method of timing of the illumination and image acquisition in an in vivo imaging device having a variable frame rate and a variable controlled illumination duration. The first imaging cycle of Fig. 9 is similar to the first imaging cycle of Fig. 8 except that the duration of the illumination period 98 of Fig. 9 (represented by the 15 hashed bar labeled 98) is longer than the duration of the illumination period 94 of Fig. 8. The first imaging cycle of Fig. 9 starts at time T, ends at time TI, and has a duration ATI. The time TM represents the end of the maximal allowable illumination period AT4. The second imaging cycle of Fig. 9 begins at time T1 and ends at time T3. The duration of the second imaging cycle AT8 is shorter 20 than the duration of the first imaging cycle AT1 (AT8<AT1). The duration of the second imaging cycle AT8 corresponds to the highest frame rate usable in the imaging device. The illumination period 100 of the second imaging cycle (represented by the hashed bar labeled 100 of Fig. 9) is timed by the illumination control unit depending on the light intensity as disclosed in detail hereinabove. 25 The time period 102 (represented by the dotted bar labeled 102) represents the amount of time AT9 required for scanning- the pixels of the imager and transmitting the scanned frame data.
T
m represents the time of ending of the maximal allowable illumination period relative to the beginning time of each imaging cycle. Thus, if the frame rate is increased, even at the highest possible 30 frame rate there is enough time to scan the pixels and transmit the data. 21 WO 2004/082472 PCT/IL2004/000265 It is noted that typically, in an exemplary in vivo imaging device having- a fixed frame rate, the time requited for scanning the pixels of a CMOS sensor having approximately 66,000 pixels (such as but not limited to a CMOS sensor arranged in a 256 X 256 pixel array), and for transmitting the digital (serial) data 5 signals to an external receiver recorder may be approximately 0.4 seconds (assuming a scanning and data transmission time of approximately 6 microseconds per pixel). Thus, assuming a maximal illumination period of approximately 20-30 milliseconds, the frame rate may not be extended much higher than 2 frames per second. Alternate frame rates may be used for 10 example, for implementing different readout rates. It may however be possible to substantially shorten the time required for scanning the pixels and for transmitting the data. For example, by increasing the clock rate of the CMOS pixel array, it may be possible to reduce the time required to scan an individual frame to 3 microseconds or even less. Additionally, it may 15 be possible to increase the data transmission rate of the transmitter 26 to even further shorten the overall time required for scanning the array pixels for transmitting the pixel data to the external receiver/recorder. Therefore, variable frame rate in vivo imaging devices, as well as fixed frame rate devices, may be implemented which may be capable of frame rates of 20 approximately 4-8 frames per second, and even higher. When the method disclosed hereinabove for turning off the illuminating unit when the integrated output of the light sensing unit reaches a threshold value adapted to ensure a good average image quality is implemented, the tendency of the designer may be to operate the illuminating unit (such as, for example the 25 illuminating unit 63 of Fig. 3) close to the maximal available light output capacity. This may be advantageous because of the shortened illumination period duration achievable which may improve image clarity by reducing movement induced image blurring. It may not always be possible or desired to operate the illuminating unit 30 close to the maximal possible light output capacity. Therefore, it may be desired 22 WO 2004/082472 PCT/IL2004/000265 to start the operation of the illuminating unit 63 at a given light output which is lower than the maximal light output of illuminating unit 63. In a second illumination control method, the illuminating unit 63 of Fig. 3 may be initially operated at a first light output level at the beginning of each of the 5 imaging cycles. The light sensing unit 67 may be used to measure the amount of light during a short illumination sampling period. Reference is now made to Figs. 10A, 1OB and 1OC. Fig IOA is a timing diagram schematically illustrating an imaging cycle of an in vivo imaging device using an automatic illumination control method in accordance with another 10 embodiment of the present invention. Fig. 10B is an exemplary schematic graph representing an example of the light intensity as a function of time, possible when using the method of automatic illumination control illustrated in Fig. 10A. Fig. 10C is a schematic graph representing another example of the light intensity as a function of time, possible when using the method of automatic illumination control 15 illustrated in Fig. 10A. In Figs. 10A, 10B and 10C, the horizontal axes of the graphs represents time in arbitrary units. In Figs. 1OB and 10C, the vertical axis represents the intensity I of the light output by the illuminating unit 63 (Fig. 3). The automatic illumination control method illustrated in Fig. 10A operates 20 by using an illumination sampling period 104 included in a total illumination period 108. An imaging cycle 110 includes the total illumination period 108 and a dark period 112. The illuminating unit 63 may illuminate the intestinal wall 76 within the duration total illumination period 108. The dark period 112 may be used for scanning the pixels of the CMOS imager 64 and for processing and 25 transmitting the image data as disclosed in detail hereinabove. The total illumination period of the imaging cycle starts at time T and ends at time TM. The time TM is fixed with respect to the beginning time T of the imaging cycle 110, and represents the maximal allowable illumination time. Practically, the time TM may be selected to reduce the possibility of image 30 blurring as explained hereinabove. For example, the time TM may be selected as 20 milliseconds from the time of beginning T of the imaging cycle 110 (in other 23 WO 2004/082472 PCT/IL2004/000265 words, the duration of the total illumination period 108 may be set at 30 milliseconds), but other larger or smaller values of the time TM and of the total illumination period 108 may also be used. The total illumination period 108 may include an illumination sampling 5 period 104 and a main illumination period 106. The illumination sampling period 104 starts at time T and ends at time Ts. The main illumination period 106 starts at time Ts and ends at time TM. In an exemplary embodiment of the method, the duration of the illumination sampling period 104 may be set at approximately 2-5 milliseconds, 10 but other larger or shorter duration values may be used depending, inter alia, on the type and characteristics of the light sensing unit 67, its sensitivity to light, its signal to noise ratio (SIN), the intensity 11 at which the illuminating unit 63 is operated during the illumination sampling period 104, and other implementation and manufacturing considerations. 15 Turning to Figs. 1OB and 10C, during the illumination sampling period 104, the illuminating unit 63 is operated such that the intensity of light is I1. The light sensing 67 may sense the light reflected from and diffused by the intestinal wall 76. The illumination control unit 40A may integrate the intensity signal to determine the quantity Q of light reaching the light sensing unit 67 within the 20 duration of the illumination sampling period 104. The illumination control unit 40A may then compute from the value Q and from the known duration of the main illumination period 106, the intensity of light IN at which the illuminating unit 63 needs to be operated for the duration of the main illumination period 106 in order to provide adequate average exposure of the CMOS sensor 64. In one 25 embodiment an estimated total amount of light received is kept substantially constant across a set of imaging cycles, or is kept within a certain target range. The computation may be performed, for example, by subtracting from a fixed light quantity which is desired to be received or applied the amount of light recorded during the sampling period 104 and dividing the result by a fixed time period 30 which corresponds to the main illumination period 106. One possible way to perform the computation would be using equation 1 as follows: 24 WO 2004/082472 PCT/IL2004/000265 IN (QT - Q)/ATMAIN equation I Wherein, 5 ATMAIN is the duration of the main illumination period 106, QT is the total quantity of light that needs to reach the light sensing unit 67 within an imaging cycle to ensure adequate average exposure of the CMOS sensor 64, and Q is the quantity of light reaching the light sensing unit 67 within the duration of an illumination sampling period 104 of an 10 imaging cycle. It is noted that the value of QT may be empirically determined. Figs. 10B schematically illustrates a graph showing the intensity of light produced by the illuminating unit 63 as a function of time for an exemplary imaging cycle. During the illumination sampling period 104 the light intensity has 15 a value 11. After the end of the illumination sampling period 104, the light intensity IN= 12 may be computed as disclosed in equation I hereinabove, or by using any other suitable type of analog or digital computation. For example, if the computation is digitally performed by the controller/processor 36 of Fig. 2, the value of IN may be computed within a very 20 short time (such as for example less than a microsecond) compared to the duration of the main illumination period 106. If the computation of IN is performed by an analog circuit (not shown) which may be included in the illumination control unit 40 of Fig. 2, or in the illumination control unit 40B of Fig. 6, or in the illumination control unit 40A of Fig. 25 3, the computation time may also be short compared to the duration of the main illumination period 106. After the computation of 12 for the imaging cycle represented in Fig. 1OB is completed, the illumination control unit 40A may change the intensity of the light output of the illuminating unit of the imaging device to 12. This may be achieved, 30 for example, by increasing the amount of current output from the LED driver unit 84 of Fig. 7, or by increasing the amount of current output from one or more LED 25 WO 2004/082472 PCT/IL2004/000265 driver units (not shown in detail) which may be included in the illumination control unit 40A to supply current to the light sources 63A, 63B, 63C, and 63D. At the end of the main illumination period 108 (at time TM), the illumination control unit 40A may switch the illuminating unit 63 off until time T1 which is the beginning of 5 a new imaging cycle (not shown). At the beginning of the new imaging cycle, the light intensity is switched again to the value 11 and a new illumination sampling period begins. Fig. 10C schematically illustrates a graph showing the intensity of light produced by the illuminating unit 63 as a function of time for another different 10 exemplary imaging cycle. The illumination intensity 11 is used throughout the illumination sampling period 104 as disclosed hereinabove. In this imaging cycle, however, the value of Q measured for the illumination sampling period 104 is higher than the value of Q measured for the illumination sampling period of Fig. 10B. This may happen, for example, due to movement of the position of the 15 imaging device 60 relative to the intestinal wall 76. Therefore the computed value of 13 is lower than the value of 12 of the imaging cycle illustrated in Fig. 10B. The value of 13 is also lower than the value of i. Thus, the intensity of light emitted by the illuminating unit 63 during the main illuminating period 106 illustrated in Fig. 10C is lower than the intensity of light emitted by the illuminating 20 unit 63 during the illumination sampling period 104 of Fig. 10C. It is noted that if the computed value of 13 is equal to the value of 11 (case not shown in Figs. 10B-10C) the illumination intensity may be maintained at the initial value of 11 for the duration of the total illumination period 108, and no modification of the illumination intensity is performed at time TM. 25 An advantage of the second illumination control method disclosed hereinabove may be that it may at least initially avoid the operating of the illuminating unit 63 at its maximal light output intensity. This may be useful for improving the performance of the power sources, such as, for example, the power source(s) 25 of Fig. 1, and may extend the useful operational life thereof. 30 It is known in the art that many batteries and electrochemical cells do not perform optimally when they are operated near their maximal current output. When using 26 WO 2004/082472 PCT/IL2004/000265 the second illumination method, the light sources (such as the light sources 63A, 63B, 63C, and 63D of Fig. 3) are initially operated at a light intensity 11 which may be a fraction of their maximal output light intensity. Thus, in cases where it is determined that the maximal light output intensity is not required for the current 5 frame acquisition, the light sources may be operated at a second light intensity level (such as, for example the light intensity level 13 which is lower than the light intensity level 11). Thus, the second illumination control method may reduce the current required for operating the illuminating unit 63 drawn from the batteries or other power sources of the imaging device which may extend the useful 10 operational life of the batteries or of other power sources used in the imaging device. According to one embodiment a combination of both methods (variable duration and variable intensity) is possible. It will be appreciated by those skilled in the art that the embodiments of 15 the present invention are not limited to the use of a single light sensing element and/or a single light source. Additionally, it will be appreciated that the light sensing elements may include photo detectors that are separate from an imager, or are part of an imager. Reference is now made to Fig. 11 which is a schematic diagram 20 illustrating an illumination control unit for controlling a plurality of light sources, in accordance with an embodiment of the present invention. The illumination control unit 120 includes a plurality of light sensing units 122A, 122B,....122N, suitably interfaced with a plurality of analog to digital (A/D) converting units 124A, 124B,... 124N, respectively. The A/D converting units are 25 suitably connected to a processing unit 126. The processing unit 126 is suitably connected to a plurality of LED drivers 128A, 128B, ... 128N which are suitably connected to a plurality of LED light sources 130A, 130B,... 130N. Signals representing the intensity of light sensed by the light sensing units 122A, 122B,....122N are fed to the A/D converting units 124A, 124B,... 124N, 30 respectively, which output digitized signals. The digitized signals may be received by the processing unit 126 which may process the signals. For example 27 WO 2004/082472 PCT/IL2004/000265 the processing unit 136 may perform integration of the signals to compute the quantity of light sensed by one or more of the light sensing units 122A, 122B,....122N. The computed quantity of light may be the total combined quantity of light sensed by all the light sensing units122A, 122B,....122N taken 5 together, or may be the individual quantities of light separately computed for each individual light sensing unit of the light sensing units 122A, 122B,....122N. The processing unit 136 may further process the computed light quantity or light quantities, to provide control signals to the LED drivers 128A, 128B,...128N which in turn may provide, individually or in combination, suitable 10 currents to the LED light sources 130A, 130B,... 130N. According to one embodiment of the present invention, each sensor may be directly related to one or more illumination sources. According to some embodiments of the present invention, individual control of illumination sources may be enabled by using special control pixels. 15 These control pixels may be adapted for fast read-out, which is well known in the art. A fast read-out procedure may not reset the pixel values. It is noted that the illumination control unit 120 of Fig. 11 may be operated using different processing and control methods. In accordance with one embodiment of the present invention, all the light 20 sensing units 122A, 122B,....122N may be used as a single light sensing element and the computation is performed using the combined total quantity of light to simultaneously control the operation of all the LED light sources 130A, 130B,... 130N together. In this embodiment, the illumination control unit 120 may be implemented using, for example, the first illumination control method as 25 disclosed hereinabove and illustrated in Figs. 5, 8, and 9, which uses a fixed illumination intensity and computes the termination time of the illumination. According to other embodiments multiple A/D units (e.g.,124) are not included, rather analog processing is performed. Alternatively, in accordance with another embodiment of the present 30 invention, the illumination control unit 120 may be implemented using the second illumination control method, for example, as disclosed hereinabove and illustrated 28 WO 2004/082472 PCT/IL2004/000265 in Figs. 10A-10C which uses a first illumination intensity 11 in an illumination sampling period and computes a second light intensity IN for use in a main illumination period as disclosed in detail hereinabove. In such a case, -the illumination intensity 11 used throughout the illumination sampling period 104 (see 5 Figs. IA-10C) may be identical for all the LED light sources 130A, 130B,... 130N, and the illumination intensity IN used throughout the main illumination period 106 (Figs. 10A-10C) may be identical for all the LED light sources 130A, 130B,... 130N. In accordance with another embodiment of the present invention, each of 10 the light sensing units 122A, 122B,....122N may be used as a separate light sensing unit and the computation may be performed using the individual quantities of light sensed by each of the light sensing units122A, 122B,....122N to differentially control the operation of at least one of the LED light sources 130A, 130B, ... 130N respectively or in any combination. In this embodiment, the 15 illumination control unit 120 may be implemented using the first illumination control method as disclosed hereinabove and illustrated in Figs. 5, 8, and 9, which uses a fixed illumination intensity for each of the LED light sources 130A, 130B,...130N and may separately compute the termination time of the illumination for each of the LED light sources 130A, 130B,...130N. In such a 20 manner, sets of light sources 130A, 130B,... 130N (where a set may include one) may be paired with sets of sensors 122A, 122B,....122N. Alternatively, in accordance with another embodiment of the present invention, the illumination control unit 120 may be implemented using the second illumination control method as disclosed hereinabove and illustrated in Figs. 25 10A-10C which uses a first illumination intensity 11 in an illumination sampling period and computes a second light intensity IN for use in a main illumination period as disclosed in detail hereinabove. In such a case, the illumination intensity 11 may be identical for all the LED light sources 130A, 130B,... 130N, and the illumination intensity IN may be identical for all the LED light sources 130A, 30 130B,...130N. 29 WO 2004/082472 PCT/IL2004/000265 Typically, this embodiment may be used in cases in which the positioning of the light sources 130A, 130B, ... 130N and the light sensing units122A, 122B,....122N in the imaging device is configured to ensure that a reasonably efficient "local control" of illumination is enabled and that the cross-talk between 5 different light sources is at a sufficiently low level to allow reasonable local control of the illumination intensity produced by a one or more of the light sources130A, 130B,... 130N by processing the signals from one or more light sensing unit which are associated in a control loop with the one or more light sources. Reference is now made to Fig. 12 which is a schematic diagram 10 illustrating a front view of an autonomous imaging device having four light sensing units and four light sources, in accordance with an embodiment of the present invention. The device 150 includes four light sources 163A, 163B, 163C and 163D and four light sensing units 167A, 167B, 167C and 167D. The light sources 15 163A, 163B, 163C and 163D may be the white LED sources as disclosed hereinabove, or may be other suitable light sources. The light sensing units167A, 167B, 167C and 167D are attached on the surface of the baffle 70, surrounding the aperture 62. The front part of the device 150 may include four quadrants 170A, 170B, 170C and 170D. The device 150 may include an 20 illumination control unit (not shown in the front view of Fig. 12), and all the optical components, imaging components, electrical circuitry, and power source(s) for image processing and transmitting as disclosed in detail hereinabove and illustrated in the drawing Figures (See Figs. 1, 2). The quadrants are schematically represented by the areas 170A, 170B, 25 170C and 170D between the dashed lines. In accordance with an embodiment of the invention, the device 150 may include four independent local control loops. For example, the light source 163A and the light sensing unit 167A which are positioned within the quadrant 170A may be suitably coupled to the illumination control unit (not shown) in a way similar to the coupling of the light sources 30 38A-38N and the light sensing unit(s) 42 to the illumination control unit 40 of Fig. 2. The signal from the light sensing unit 167A may be used to control the 30 WO 2004/082472 PCT/IL2004/000265 illumination parameters of the light source 163A using any of the illumination control methods disclosed hereinabove, forming a local control loop for the quadrant 170A. Similarly, the signal from the light sensing unit 167B may be used to 5 control the illumination parameters of the light source 163B using any of the illumination control methods disclosed hereinabove, forming a local control loop for the quadrant 170B, the signal from the light sensing unit 167C may be used to control the illumination parameters of the light source 163C using any of the illumination control methods disclosed hereinabove, forming a local control loop 10 for the quadrant 170C, and the signal from the light sensing unit 167D may be used to control the illumination parameters of the light source 163D using any of the illumination control methods disclosed hereinabove, forming a local control loop for the quadrant 170D. It is noted that there may be some cross-talk or interdependency between 15 the different local control loops, since practically, some of the light produced by the light source 163A may be reflected from or diffused by the intestinal wall and may reach the light sensing units 167B, 167C, and 167D which form part of the other local control loops for the other quadrants 170B, 170C, and 170D, respectively. 20 The arrangement of the positions light sensing units 167A, 167B, 167C and 167D and the light sources 163A, 163B, 163C and 163D within the device 150 may be designed to reduce such cross-talk. In other embodiments of the invention it may be possible to use processing methods such as "fuzzy logic" methods or neural network 25 implementations to link the operation of the different local control loops together. In such implementations, the different local control loops may be coupled together such that information from one of the light sensing unit may influence the control of illumination intensity of light sources in other local control loops. It is noted that, while the imaging device 150 illustrated in Fig. 12 includes 30 four light sources and four light sensing units, The number of light sources may vary and the imaging device of embodiments of the present invention may be 31 WO 2004/082472 PCT/IL2004/000265 constructed with a different number (higher or lower than four) of light sources. Similarly, the number of the light sensing units may also vary, and any suitable or practical number of light sensing units may be used. Additionally, it is noted that the number of light sensing units in a device need not be identical to the number 5 of light sources included in the device. Thus, for example, a device may be constructed having three light sensing units and six light sources. Or in another example, a device may be constructed having ten light sensing units and nine light sources. The factors determining the number of light sources and the number of 10 light sensing units may include, inter alia, the geometrical (two dimensional and three dimensional) arrangement of the light sources and the light sensing units within the device and their arrangement relative to each other, the size and available power of the light sources, the size and sensitivity of the light sensing units, manufacturing and wiring considerations. 15 The number of local control loops may also be determined, inter alia, by the degree of uniformity of illumination desired, the degree of cross-talk between the different local control loops, the processing power of the illumination control unit available, and other manufacturing considerations. The inventors of the present invention have noticed that it is also possible 20 to achieve illumination control using one or more of the light sensitive pixels of the imager itself, instead of or in addition to using dedicated light sensing unit(s) which are not part of the imager. In addition, special light sensing elements may be integrated into the pixel array on the surface of the CMOS imager IC. For example, in CMOS type imagers, some of the pixels of the CMOS 25 imager may be used for controlling the illumination, or alternatively, specially manufactured light sensitive elements (such as, analog photodiodes, or the like) may be formed within the pixel array of the imager. Reference is now made to Fig. 13 which is a top view schematically illustrating the arrangement of pixels on the surface of a CMOS imager usable for 30 illumination control, in accordance with an embodiment of the present invention. 32 WO 2004/082472 PCT/IL2004/000265 It is noted that the pixel arrangement in Fig. 13 is only schematically illustrated and the actual physical arrangement of the circuitry on the imager is not shown. The surface of the CMOS imager 160 is schematically represented by a 12X12 array comprising 144 square pixels. The regular pixels 160P are 5 schematically represented by the white squares. The CMOS imager also includes sixteen control pixels 160C, which are schematically represented by the hashed squares. It is noted that while the number of the pixels in the CMOS imager 160 was arbitrarily chosen as 144 for the sake of simplicity and clarity of illustration 10 only, the number of pixels may be larger or smaller if desired. Typically, a larger numbers of pixels may be used to provide adequate image resolution. For example a 256X256 pixel array may be suitable for GI tract imaging. In accordance with an embodiment of the present invention, the control pixels 160C may be regular CMOS imager pixels which are assigned to be 15 operated as control pixels. In accordance with this embodiment, the control pixels 160C may be scanned at a different time than the regular imaging pixels 160P. This embodiment has the advantage that it may be implemented with a regular CMOS pixel array imager. Turning back to Fig. 10A, the timing diagram of Fig. 1OA may also be 20 used, according to one embodiment, to illustrate the automatic illumination control method using control pixels. The method may operate by using a fast scan of the control pixels 160C at the beginning of each imaging cycle 110. The illuminating unit (not shown) may be turned on at the beginning of the imaging cycle 110 (at time T). The scanning of the control pixels 160C may be performed 25 similar to the scanning of the regular pixels 160P, except that the scanning of all of the control pixels 160C occurs within the illumination sampling period 104. The control pixels 160C may be serially scanned within the duration of the illumination sampling period 104. This is possible due to the ability to randomly scan any desired pixel in a CMOS pixel array, by suitably addressing the pixel 30 readout lines (not shown) as is known in the art. 33 WO 2004/082472 PCT/IL2004/000265 It is noted that since the control pixels 160C are scanned serially (one after the other), the control pixel which is scanned first has been exposed to light for a shorter time period than the control pixels which are scanned next. Thus, each control pixel is scanned after it has been exposed to light for a different 5 exposure time period. If one assumes that the intensity of light reflected from the intestinal wall does not change significantly within the duration of the illumination sampling period 104, it may be possible to compensate for this incrementally increasing pixel exposure time by computationally correcting the average measured light 10 intensity for all the control pixels 160C, or the computed average quantity of light reaching all the control pixels 160C. For example, a weighted average of the pixel intensities may be computed. Alternatively, in accordance with another embodiment of the present invention, the illuminating unit 63 may be turned off after the end on the 15 illumination sampling period 104 (the turning off is not shown in Fig. 10A). This turning off may enable the scanning of the control pixels 160C while the pixels 160C are not exposed to light and may thus prevent the above described incremental light exposure of the control pixels. After the scanning (readout) of all the control pixels 160C is completed 20 and the scanned control pixel signal values are processed (by analog or by digital computation or processing), the value of the required illumination intensity in the main illumination period may be computed, for example, by the illumination control unit 40A (or, for example, by the illumination control unit 40 of Fig. 2). The computation of the required illumination intensity or of the current 25 required from the LED driver unit 84 may be performed as disclosed hereinabove, using the known value of 11 (see Fig. 10B) and may or may not take into account the duration of the period in which the illuminating unit 63 was turned off (this duration may be approximately known from the known time required to scan the control pixels 160C and from the approximate time required 30 for the data processing and/or computations). The illumination unit 63 may then be turned on (the turning on is not shown in Fig. 10A for the sake of clarity of 34 WO 2004/082472 PCT/IL2004/000265 illustration) using the computed current value to generate the required illumination intensity value 12 (see Fig. 10B) till the end of the main illumination period 106 at time TM. It is noted that if the number of control. pixels 160C is small the time 5 required for scanning the control pixels 160C may be short in comparison to the total duration of the total illumination period 108. For example, if the scan time for scanning a single control pixel is approximately 6 microseconds, the scanning of 16 control pixels may require about 96 microseconds. Since the time required for computing the required light intensity may also be small (a few microseconds 10 or tens of microseconds may be required), the period of time during which the illumination unit 63 is turned of at the end of the illumination sampling period 104 may comprise a small fraction of the main illumination period 108 which may typically be 20-30 milliseconds. It may also be possible to compute a weighted average in which the 15 intensity read for each pixel may be differently weighted according to the position of the particular control pixel within the entire pixel array 160. Such weighting methods may be used for obtaining center biased intensity weighting, as is known in the art, or any other type of biased measurement known in the art, including but not limited to edge (or periphery) biased weighting, or any other 20 suitable type of weighting known in the art. Such compensating or weighting computations may be performed by an illumination control unit (not shown) included in the imaging device, or by any suitable processing unit (not shown), or controller unit (not shown) included in the imaging device in which the CMOS imager 160 illustrated in Fig. 13 is included. 25 Thus, if an averaging or weighting computation is used, after the readout of the control pixels and any type of compensation or weighting computation is finished, tne ilumination control unit (not shown) may compute the value of the weighted (and/or compensated) quantity of light sensed by the control pixels 160C and use this value for computing the value of 12. 30 It is noted that the ratio of the number of the control pixels 160C to the regular pixels 160P should be a small number. The ratio of 16/144 which is 35 WO 2004/082472 PCT/IL2004/000265 illustrated is given by example only (for the sake of clarity of illustration). In other implementations the ratio may be different depending, inter alia, on the total number of pixels in the CMOS array of the-imager and on the number of control pixels used. For example in a typical 256 X 256 CMOS pixel array it may be 5 practical to use 16-128 pixels as illumination control pixels for illumination control purposes. The number of control pixels in the 256 X 256 CMOS pixel array may however also be smaller than 16 control pixels or larger than 128 control pixels. Generally, the number of control pixels and the ratio of control pixels to regular pixels may depend, inter alia, on the total number of pixels available on 10 the imager pixel array, on the pixel scanning speed of the particular imager, on the number of control pixels which may be practically scanned in the time allocated for scanning, and on the duration of the illumination sampling period. An advantage of the embodiments using automatic illumination control methods in which some of the pixels of the CMOS imager pixel array (such as for 15 example the example illustrated in Fig. 13) is that in contrast to light sensitive sensors which may be disposed externally to the surface of the imager (such as for example, the light sensing unit 67 of Fig. 3), the control pixels 160C actually sense the amount of light reaching the imager's surface since they are also imaging pixels disposed on the surface of the imager. This may be 20 advantageous due to, inter alia, higher accuracy of light sensing, and may also eliminate the need for accurately disposing or the light sensing unit at an optimal place in the optical system, additionally, the control pixels may have signal to noise characteristics and temperature dependence properties similar to the other (non-control) pixels of the imager. 25 Another advantage of using control pixels is that no external light sensing units are needed which may reduce the cost and simplify the assembly of the imaging device. It is noted that, according to one embodiment, in a CMOS imager such as imager 160, the scanning of the control pixels 160C after the illumination 30 sampling period 104 does not reset the pixels. Thus, the control pixels 160C continue to sense and integrate the light during the main illumination period 106, 36 WO 2004/082472 PCT/IL2004/000265 and are scanned after the time TM together with all the other regular pixels 160P of the imager 160. Thus, the acquired image includes the full pixel information since the control-pixels 160C and the regular pixels 160P have been exposed to light for the same duration. The image quality or resolution is thus not 5 significantly affected by the use of the control pixels 160C for controlling the illumination. It is also noted that while the arrangement of the control pixels 160C on the imager 160 is symmetrical with respect to the center of the imager, any other suitable arrangement of the pixels may be used. The number and the distribution 10 of the control pixels on the imager 160 may be changed or adapted in accordance with the type of averaging used and/or for example, with the type of acquired images. Furthermore, the control pixels may be grouped into groups that may be processed separately to allow local illumination control in imagers using a 15 plurality of separately controllable light sources. Reference is now made to Fig. 14, which is a schematic top view of the pixels of a CMOS imager illustrating an exemplary distribution of control pixel groups suitable for being used in local illumination control in an imaging device, in accordance with an embodiment of the present invention. 20 The illustrated imager 170 is a 20X20 pixel array having 400 pixels. The control pixels are schematically represented by the hashed squares 170A, 170B, 170C and 170C and the remaining imager pixels are schematically represented by the non-hashed squares 170P. Four groups of control pixels are illustrated on the imager 170. 25 The first pixel group includes four control pixels 170A arranged within the top left quadrant of the surface of the imager 170. The second pixel group includes four control pixels 170B arranged within the top right quadrant of the surface of the imager 170. The third pixel group includes four control pixels 170C arranged within the bottom right quadrant of the surface of the imager 170. The 30 fourth pixel group includes four control pixels 170D arranged within the top left bottom quadrant of the surface of the imager 170. 37 WO 2004/082472 PCT/IL2004/000265 If the imager 170 is disposed in an autonomous imaging device having a plurality of light sources (such as, but not limited to the device 150 of Fig. 12), each of the four groups of control pixels 170A, 170B, 170C and 170D may be scanned and processed as disclosed hereinabove to provide data for locally 5 controlling the illumination level reaching each of the respective four quadrants of the imager 170. The scanned data for each of the pixels within each of the four groups may be processed to compute a desired value of illumination intensity for the respective imager quadrant. The methods for controlling the illumination using separate local control loops may be similar to any of the methods disclosed 10 hereinabove with respect to the device 150 of Fig. 12, except that in the device 150 the light sensing units are units external to the imager and in the device 170, the control pixels used for sensing are imager pixels which are integral parts of the imager 170. The illumination control methods using control pixels may implemented 15 using the closed-loop method of terminating the illumination when the integrated sensor signal reaches a threshold level as disclosed hereinabove or may be implemented by using an initial illumination intensity in a sampling illumination period and adapting or modifying the illumination intensity (if necessary) in accordance with a value computed or determined from the control pixel scanning 20 as disclosed hereinabove. The signals or data of (representing the pixel charge) the pixel groups may be processed using averaging or weighted averaging methods to perform center biased or periphery biased averages or according to any other averaging or processing method known in the art. The results of the processing may be 25 used as disclosed hereinabove to control the light sources (such as for example four light sources disposed within the imaging device in an arrangement similar to the arrangement of the four light sources 163A, 163B, 163C, and 163D of Fig. 12). It will be appreciated by those skilled in the art that the number of control 30 pixels and the distribution of the control pixels on the surface of the imager may be varied, inter alia, in accordance with the desired type of averaging, the 38 WO 2004/082472 PCT/IL2004/000265 required number of local illumination control groups, the number and position of the light sources available in the imaging device, the computational power available to the processing unit available, the speed of the illumination control unit, and other design considerations. 5 In accordance with another embodiment of the present invention, the control pixels 160C of Fig. 13 may be specially fabricated pixels, which are constructed differently than the regular pixels 160P. In accordance with this embodiment, the control pixels 160C may be fabricated as analog photodiodes with appropriate readout or sampling circuitry (not shown) as is known in the art. 10 This implementation may use a specially fabricated custom CMOS imager in which the analog photodiodes serving as the control pixels 160C may be read simultaneously which may be advantageous since the readout or scanning time may be shorter than the time required to sequentially scan the same number of control pixels implemented in a regular CMOS pixel array having uniform pixel 15 construction. It is noted that when analog photodiodes or other known types of dedicated sensors are integrated into the CMOS pixel array of the imaging device, the acquired image will have "missing" image pixels, since the area in which the analog photodiode is disposed is not scanned together with the regular 20 CMOS array pixels. The image data will therefore have "missing pixels". If, however, a small number of analog photodiodes or other dedicated control pixels is included in the CMOS pixel array, the missing pixels may not cause a significant degradation of image quality. Additionally, such dedicated analog photodiodes or other control pixels may be distributed within the pixel array and 25 may be sufficiently spaced apart from each other, so that image quality may be only slightly affected by the missing image pixels. It is noted that while the illumination control methods are disclosed for use in an autonomous imaging device such as the device 10A of Fig. 1, these illumination control methods may also be used with or without adaptations in 30 other in-vivo imaging devices having an imager and an illumination unit, such as in endoscopes or catheter-like devices having imaging sensor arrays, or in 39 WO 2004/082472 PCT/IL2004/000265 devices for performing in-vivo imaging which are insertable through a working channel of an endoscope, or the like. Additionally, the illumination control methods disclosed herein may be used in still cameras and in video cameras which include a suitable imager, such 5 as a CMOS imager, and which include or are operatively connected to an illumination source. Additionally, the use of control pixels implemented in a CMOS pixel array imagers, using selected regular pixels as control pixels or using specially fabricated control pixels such as the analog photodiodes or the like, may be 10 applied for controlling the illumination of a flash unit or another illumination unit which may be integrated within the camera or may be external to the camera and operatively connected thereto. The advantages of using control pixels which are part of the CMOS imager of the camera may include, inter alia, simplicity of construction and operation, the 15 ability to implement and use a plurality of controllably interchangeable averaging methods including weighted averaging methods and biasing methods, as disclosed in detail hereinabove, increased accuracy of illumination control. Additionally, in specialty cameras operating under conditions in which the light source included in the camera or operatively connected thereto is the only 20 source of available illumination (such as, for example, in camera's operated at the bottom of the ocean, or in cameras which are designed to perform surveillance or monitoring in difficult to access areas which are normally dark), the use of illumination control methods disclosed hereinabove may allow to use shutterless cameras, which may advantageously increase the reliability of such 25 devices, reduce their cost, and simplify their construction and operation. It is noted that, while in the embodiments of the invention disclosed hereinabove the number and the arrangement of the control pixels are fixed, in accordance with another different embodiment of the present invention, the number and/or the geometrical configuration (arrangement) of the control pixels 30 may be dynamically changed or controlled. For example, briefly turning to Fig. 2, the light sensing unit(s) 42 may represent one or more control pixels of a CMOS 40 WO 2004/082472 PCT/IL2004/000265 pixel array, and the illumination control unit 40, and/or the controller/processor unit 36 may be configured for changing the number of the control pixels used in an imaging acquisition cycle and/or for changing the arr-angement of the control pixels on the pixel array of the imaging unit 32. 5 Such changing of control pixel number and/or arrangement may be performed, in a non-limiting example, by changing number and/or arrangement of the pixels selected to be scanned as control pixels during the illumination sampling period 104 (Fig. 10A). Such a changing may allow the use of different averaging arrangements and methods and may allow changing of different 10 biasing methods for different imaging cycles. Additionally, using dynamically controllable control pixel configuration, it may be possible to implement two or more illumination sampling periods within a single imaging cycle and to use a different pixel number or configuration for each of these two or more illumination sampling periods. 15 It may also be possible to remotely control the number and/or configuration of the control pixels, by instructions which are wirelessly transmitted to the telemetry unit, for example, telemetry unit 34 (Fig. 2), in which case the telemetry unit may be configured as a transceiver unit capable of transmitting data and of receiving control data transmitted to it by an external transmitter unit 20 (not shown in Fig. 2). It is noted that, while the embodiments disclosed hereinabove were based on modifying the light output from the illumination unit(s) (such as, for example the illumination unit 63 of Fig. 3) based on measurement and processing of the amount of light reaching the light sensing elements (such as, for example the 25 light sensing unit 67 of Fig. 3, or the light sensing units 42 of Fig. 2, or the control pixels 160C of Fig. 13), another approach may be used. According to some embodiments of the present invention, the gain of the pixel amplifiers of the imager (for example, imaging unit 32 of Fig. 2) and/or other 30 parameters may be changed. The parameter change decisions may be based on, for example, the results of the measurement of the amount of light reaching 41 WO 2004/082472 PCT/IL2004/000265 the light sensing unit or units (such as, for example, the light sensing unit 42 of Fig. 2, the control pixels 160C of Fig. 13, or the like). In such an embodiment, the illumination unit of the imaging device(s) (such as, for example, the illumination unit 63A of Fig. 3, or the illumination unit 38 of Fig. 2 etc.) may be 5 operated at a fixed or variable illumination intensity, for a fixed or variable time period. The light that reaches the light sensing unit(s) or the control pixels of the imaging device during a sampling period (e.g., a portion of the exposure period within a frame) may be measured at a sampling instance or point. A sampling instance or point may be a discrete point in time or may extend over a certain 10 amount of time. Parameters such as the gain level or sensitivity of the imager pixel amplifiers, the light intensity, duration of illumination or other parameters may be changed individually or in any combination in relation to, for example, measurements of relative light saturation of selected pixels, to achieve proper or appropriate imaging. 15 For example, if the amount of light reaching the light sensing unit(s) during an illumination sampling period, as measured at at least one selected sampling instance (period), is approximately sufficient to ensure proper image exposure (relative to, for example, an expected threshold for a determined number of pixels), the exposure may be stopped. In this case full exposure has already 20 been achieved, and no further exposure is necessary. In this case, no change is the current image gain level should be required when transmitting the image. In addition, since the exposure was relatively short, there should be no problem with blurring, which may accompany images recorded with long light exposures. In the case where the measurement at a sampling instance determines 25 that too little saturation has been attained (relative to a threshold value) during an illumination sampling period, the exposure should be continued to enable sufficient lighting for an image. However, too much exposure may cause blurring, so the imager may be commanded to lower the saturation threshold so as to have a shorter exposure. In addition to lowering the saturation threshold, in order 30 to compensate for the short exposure, the imager may be commanded to provide a higher gain level for the image transmission, to enable enough exposure in 42 WO 2004/082472 PCT/IL2004/000265 spite of the short exposure time. For example, if the saturation threshold was halved to shorten the exposure sufficiently, the gain level will correspondingly need-to be doubled to enable adequate exposure. If too much light, possibly relative to an expected threshold, reaches the 5 light sensing unit(s) during an illumination sampling period, the exposure may be stopped, and the pixel amplifier gain (or other parameters) may be decreased to prevent overexposure. Additional sampling periods may be instituted at chosen instances, to enable further fine-tuning of variables such as image gain and exposure time. 10 In addition to changes in the analog gain, which may be based on continuously scanning the analog output of a selected number of pixels during the early phase of the exposure period, the exposure may be stopped at any stage where full (e.g., adequate) saturation has been reached. In this way, for example, full image exposure may be provided in many cases of low exposure, 15 by, for example, adding gain levels to images. In addition, over exposure can be prevented in many cases where there is high exposure, by, for example stopping exposure when saturation is attained. These changes may result in increased image quality, energy saving and/or other benefits. Various embodiments may utilize various time, saturation, and voltage 20 levels, and are not limited to the following defined levels. According to a particular application of the present embodiment, required time resolution, which defines the maximum read out time required to achieve saturation for all pre-selected pixels may be, for example, 0.25 s. Other values or ranges may be used. According to some embodiments of the present invention, a total exposure 25 time (e.g., an expected time required for adequate and/or correct exposure) may be defined (T1), within which an exposure measurement time (sampling time, such as T1/ 4 or other times which are a portion of TI) may be defined. The discrete time instances, where changes of reference levels may occur and gain decisions may be taken, may be determined by T1. This value may be used 30 indirectly to set time intervals such as T1/ 2 and T1/ 4 , or other intervals, which may be sample time intervals for measuring pixel saturation. A maximum exposure 43 WO 2004/082472 PCT/IL2004/000265 time may also be defined (TM). Typically, Ti and TM are both programmable. Typically, TM does not impact on the calculations, other than to set a maximal exposure time at which point exposure may be stopped, regardless of whether exposure saturation thresholds have been crossed. T1, on the other hand, may 5 be used as the target exposure time. For example, TI may refer to the expected exposure for adequate or complete saturation etc. At intervals T1/ 4 and T1/ 2 , for example, the current system or method according to some embodiments sets the saturation threshold levels expected to be crossed before T1. Typically, the device 30 transmits image information in discrete portions. 10 Each portion typically corresponds to an image or frame. Other transmission methods are possible. For example, the device 30 may capture an image once every half second, and, after capturing such an image, transmit the image to the receiving antenna. Other capture rates are possible. Typically, the image data recorded and transmitted is digital color image data, although in alternate 15 embodiments other image formats (e.g., black and white image data) may be used. In one embodiment, each frame of image data includes 256 rows of 256 pixels each, each pixel including data for color and brightness, according to known methods. For example, in each pixel, color may be represented by a mosaic of four sub-pixels, each sub-pixel corresponding to primaries such as red, 20 green, or blue (where one primary is represented twice). The brightness of the overall pixel may be recorded by, for example, a one byte (i.e., 0-255) brightness value. Other data formats may be used. According to one embodiment, a reliable exposure measurement may require inclusion of every nth (e.g., 4 th) pixel (which may be, for example, every 25 second RED pixel, since there are typically more red pixels according to one embodiment, in every m lines (e.g. 10 out of 256 lines, in a typical approximately 66,000 pixel frame (e.g., 256 x 256 pixels)). This is equivalent to approximately 640 pixels in a typical frame. In one embodiment a reliable exposure measurement may require approximately 1.5% (for example, 11 pixels out of 30 640) of the selected pixels to be saturated in order to pass a saturation threshold, according to which gain decisions may be taken. Other frame sizes, 44 WO 2004/082472 PCT/IL2004/000265 percentages, and sample rates may be used, as appropriate. For example, 9, 11, 15, 24, and any other number of pixels can be used per frame or per sampled subset to determine a saturation threshold. Other individual pixels, e.g., non-red pixels, may be sampled, and sampling need not be based on color. 5 According to one embodiment, exposure time may be determined in, for example, 8 steps, from 5ms to 40ms. Other numbers of steps and intervals may be used, and intervals need not be used - e.g., exposure time may be determined on a continual basis. Furthermore, T1 may be digitally programmable, for example, in 8 steps with a, for example, logarithmic scale 10 from, for example, 1 ms to I Oms. According to one embodiment, the accuracy of detection levels may be defined, for example, as less than 5%. Other accuracy levels may be used, as appropriate. The measurement of the exposure, according to one embodiment, may be performed on a subset of the pixels in the sensor array or imager. A 15 determination as to whether a gain exposure change may be in order may be based on, for example, a percentage of the selected pixels that are saturated with light, relative to, for example, a saturation threshold for one or more pixels. The gain or other parameter setting -decision may be based on one or more discrete time intervals within which the outputs from a nominal number of the 20 selected number of pixels (e.g., 11 according to one embodiment) have reached a certain saturation level (e.g., reference level), or threshold. In this way, the exposure may continue until it is determined that the pixel output from the nominal number of pixels has reached a new saturation level, at which time the gain (or other parameter) level may be changed. According to one embodiment, 25 exposure may continue until, for example, full saturation or maximum exposure time (Tm) is reached. It should be noted that determination of full saturation may differ according to the various gain (or other parameter) levels. For example, expected saturation at gain 1 may be V1, and expected saturation at gain 4 may be V1/ 4 . The reference voltage (Vref), or threshold voltage, for determining 30 whether gain and/or exposure need to be changed may be defined at any discreet time interval, relative to the proportion of time to T1. For example, Vref 45 WO 2004/082472 PCT/IL2004/000265 may be equal to Vfs/ 4 at time T1/ 4 , when the, light reflection may initially be measured. Similarly, Vref may be equal to Vfs/ 2 at time T1/ 2 , when the light reflection may subsequently be measured. According to some embodiments of the present invention, an aggregate 5 gray scale for the selected pixels (640 in the current example, etc.) may be measured at one or more intervals. The average may be compared to a saturation threshold, and gain decisions that are taken may be related to the average gray scale measurement and the relevant saturation threshold. According to some embodiments of the present invention, the signal 10 saturation level may be defined as Voltage Saturation, or Vsat, which represents a low pixel voltage, and may be defined as the pixel saturation referred to ground. Pixel reset level may be defined as Vrst, which represents the highest pixel voltage. Finally, Vfs may be defined as the A/D full-scale voltage, which represents the actual saturation or voltage level at a determined interval. 15 Accordingly, Vsat=Vrst-Vsat=Vfs. In other words, the pixel signal level may be defined as the difference between the pixel reset level and the instantaneous pixel voltage, and may be a positive voltage, increasing from 0, during exposure. This "delta-voltage" may be compared with the comparator reference voltage, such as, for example Vfs/ 4 , at T1/ 4 . 20 Reference is now made to Fig. 15, which illustrates, according one embodiment of the present invention, gain setting decisions that may be made, during an exposure period, as a function of pixel output (light saturation) vs. time. As can be seen in Fig. 15, for example, three gain settings that may be used are 25 gain 1, gain 2 and gain 4. The thicker lines 161, 163 and 165 represent the gain limits or thresholds. The settings of Fig. 15 are provided as an example only, and are not meant to be limiting. Other numbers of gain settings may be used. At an interval such as T1/ 4 , the saturation threshold (level) for selected pixels may be measured. The saturation threshold may be at, below, or above an 30 expected threshold 161. In case "b", where the pixel output (average saturation of the selected pixels) is above the expected threshold 161, it is to be expected that 46 WO 2004/082472 PCT/IL2004/000265 full exposure will be completed within, for example, T1. Therefore no increase in gain, or sensitivity, is necessary, and exposure continues until full saturation (Vfs) is reached, at which time exposure is stopped. In case "c", where the pixel output is below the expected threshold 161, 5 but above a middle threshold 163, it is to be expected that exposure will not be completed within T1. Even though saturation may eventually be attained, the exposure will inevitably be longer than T1, which may cause a blurring effect. Therefore the imager may be commanded to increase the gain level from gain 1 to gain 2. Accordingly, the saturation threshold may be decreased by, for 10 example, half, to Vfs/ 2 , which together with, for example, gain 2 amplification may provide full image exposure. The exposure may then continue until saturation level Vfs/ 2 is reached, at which time exposure may be stopped. Vfs/ 2 represents full saturation in this case since gain level 2 was applied. Other gain levels may be used. 15 In case "d" where the pixel output is below the middle threshold 163, but above a lower threshold 165, it may be expected that exposure will not be completed within T1. Therefore exposure continues and, in addition, a more significant increase in gain level may be necessary. The imager may be commanded to increase the gain level to gain 4, for example, and exposure may 20 subsequently continue until corresponding saturation level Vfs/ 4 is reached, at which time exposure may be stopped. In case "a" where the pixel output is below the lower threshold 164, it may be expected that exposure will not be completed within T1, or even within TM. Therefore an increase in gain level to gain 4, for example, may be necessary, 25 and exposure may continue until T1. In this example, since full exposure has not been achieved even at T1, exposure may continue until TM, to increase the possibility of sufficient exposure. TM may be the maximum exposure time for all cases. As can been in the above example, and in relation to Fig. 15, full exposure 30 has been achieved in 3 out of the 4 frames, and exposure time has likewise been reduced in 3 out of the four frames, possibly leading to significant increases in 47 WO 2004/082472 PCT/IL2004/000265 exposure clarity and decreases in usage of power resources. In alternate embodiments, other levels of alteration or improvement may result. Additional measurement instances may also be provided, such as, for example, T112 and TI/ 3 etc. The pixel exposures in the above scenarios may 5 likewise be measured at this second interval, to establish whether further gain level changes are necessary. In one embodiment, a first scan may be utilized to search for "white spots", or "hot spots", which are problematic (poorly or non-functioning) image receivers that may not be counted in the group of saturated pixels. This first scan may 10 therefore be designed to detect, define and discard the problematic or non-functional pixels from the selected pixel group. Such a defective/non-functioning scan need not be used. Following is an example of a non-limiting description of "pseudo-code", which may be used to implement an embodiment of the present invention. Other 15 embodiments of the present invention may be implemented without coding, such as by using circuit design. Various embodiments of the present invention may be implemented using different code sequences and programming or logic design techniques: Vref=Vfs/ 4 20 Gain=4 Exposure='on' White spots=Scan result While Exposure='on' Pix above ref=Scan result %%%%For each scan 25 lf(t>=Tm) Exposure='off' Else %(t<Tm) If (Pix aboveref-White spots>='tablevalue') If (Gain=4) 30 If (t<TI/ 4 ) Vref=Vfs; Gain=1; Else %(t>=T1/ 4 ) If (t<TI/ 2 ) 35 Vref=Vfs/ 2 ; Gain=2 Else %(t>=T1/ 2 ) 48 WO 2004/082472 PCT/IL2004/000265 exposure='off' End %(t<T1/ 2 ) End %(t<T1/4) Else %(Gain !=4) 5 Exposure='off' End %(Gain=4) End % (Pixaboveref-White spots>='tablevalue') End %(t<Tm) End %( While Exposure='on') 10 It is noted that such automatic gain control may result, under certain conditions in changes in the signal to noise ratio (S/N) of the imager in some cases. For example, increasing the pixel amplifier gain in CMOS pixel array imagers may result in higher S/N ratios, while increasing the exposure time (Tm) 15 may increase the image "blur". According to some embodiments of the present invention, the above described principles and related Fig. 15 may likewise be used to describe implementations of the present invention for other parameters such as 20 illumination intensity and duty cycle etc., or in combination with such other parameters. For example, a method may be followed for determining light saturation in relation to light intensity and duty cycle et, according to threshold values, at selected instances. These calculations of saturation level may determine whether such parameters are at, below or above a given threshold. 25 Such a determination may enable decision making such as to change light illumination, duty cycle etc. to reflect the exposure needs of the relevant frames. For example, the controller or any other element may measure light saturation levels in one or more light measuring elements, and in response to resulting measurements, may simultaneously at least one of control illumination 30 duration, illumination intensity and/or image gain level. According to one embodiment of the present invention, illumination (exposure) may be increased eight-fold, for example, using the following or other possibilities: R. duration x 2, intensity x 2, gain x 2 -. duration x 8, intensity x 1, gain x 1 49 WO 2004/082472 PCT/IL2004/000265 A. duration x 1, intensity x 8, gain x I T. duration x 1, intensity x 1, gain x 8 n. duration x 1.5, intensity x 1.5, gain x 3.56 etc. Any other combinations of parameters that may be required to implement 5 the above or alternate illumination targets may be utilized. Additional, any other suitable parameters may be factored in to the above described embodiments, individually or in any combination, to enable an in-vivo imaging device to provide more accurate exposure. 10 According to some embodiments of the present invention, a method is provided for determining the location or position of an in vivo device, such as an in vivo imaging capsule. For example, a method is provided for determining when an in vivo device enters into a body or enters into a particular area of the body, etc. This determination may be used for decision making, such as, for example, a 15 decision whether an in vivo capsule should enter or exit an operational mode such as "fast mode", "slow mode", "standard mode" etc. A fast mode, for example, may enable the imaging device to attain an increased frame rate, which may be particularly useful for enabling rapid imaging of the esophagus after swallowing an imaging capsule. Such rapid imaging is not required, however, 20 when the device is in, for example, the small intestine, therefore the device may be programmed to switch to a "standard mode" after a time period following the internalization of the device. Other operational mode changes may be effected. Thus, for example, the imaging device may send compressed data in "fast mode" when traveling down the esophagus, and then operate in regular uncompressed 25 mode at a lower frame rate thereafter, when such a fast frame rate is not required. In one embodiment of the invention, this may be accomplished by setting a mode, such as a fast mode, to end when a significant change has been determined in the environment surrounding the device. This may be 30 accomplished by providing an environmental monitoring tool, such as a pH indicator, temperature gauge or light level indicator etc. in, on or outside of the 50 WO 2004/082472 PCT/IL2004/000265 imaging device to measure or otherwise determine environmental data. The monitoring or measurement tool may compare the measured data with previously measured environmental data to determine environmental changes. When, for example, the environment of the capsule has fallen below a certain pH level, this 5 change in pH level may indicate that the esophagus has been traversed and that the imaging device is in the stomach. Various environments or environmental changes may be determined, depending on the measurement tools being used, such as outside the body, inside the body, in the mouth, in the throat, in the esophagus, in the stomach, in the small intestine etc. 10 In other embodiments, a mode, such as a fast mode, may be set to end a fixed amount of time, e.g. five minutes, after a change is detected. A change may be, for example, the capsule entering a dark environment such as the mouth. For example, a controller may configure a light source to provide a "dark frame" at determined frame intervals, such as, for example, at 1 frame out of 15 every 256. During a dark frame, LEDs or other illumination sources may not be lit or may be lit for a brief instant, substantially inadequate to provide viable exposure for an image. For example, an in vivo imaging device may require a 25ms exposure at a fixed light intensity to adequately light an internal lumen, yet purposefully provides an inadequate exposure of, for example, 5ms. The device 20 may periodically process the "dark" frame, which may be analyzed to determine the presence of ambient light in the environment of the device. If the ambient light is above a threshold level, indicating that there is a substantial amount of surrounding light and that a non-substantial amount of additional light is required for the image to attain saturation, it may be assumed that the capsule has not yet 25 entered the body and that the fast mode should continue. If the ambient light during the dark frame is below a threshold level, indicating that the image requires a substantially significant amount of additional light to attain saturation, it may be assumed that the capsule has entered a darker environment, such as the body. In this case it may be assumed that the fast mode will no longer be 30 necessary after a predetermined period of time, e.g., five minutes, by which time it may be assumed that the capsule has passed through the esophagus. 51 WO 2004/082472 PCT/IL2004/000265 According to some embodiments, the exposure of the dark frame may be measured in relation to a light saturation threshold for the dark frames, to determine whether and/or-by how much a change in an imager gain level is required. If the dark frame requires a substantially non-maximal gain factor, 5 indicating that the image has a relatively adequate amount of light and only a relatively small gain level may be required to reach full exposure, the device may be defined as being outside a body. When the dark frame requires a large or maximal gain factor, indicating that a substantial gain is required for possibly reaching full saturation, the device may be defined as being inside a body. 10 Fig. 16A depicts a series of steps of a method for determine a necessary image gain level during an exposure period, according to an embodiment of the present invention. In alternate embodiments, other steps, and other series of steps, may be used. In step 500, a device, such as an in-vivo imaging device, turns on a light 15 source. In step 510, which may be a short sampling period, the device records (and possibly integrates) the amount of light received to at least one light measuring element. This may be, for example, to a sensor on the device, or possibly to an external sensor. 20 In step 520, the device determines the amount of light recorded. In step 530, if the amount of light recorded, for example, by a portion of the frame's pixels is less than a certain pre-determined value (saturation threshold). In step 540, the image gain level may be increased, and the device may 25 continue exposure (or other parameters, such as light level etc.) until saturation is attained 560. In this case, step 520 may be repeated at a subsequent time interval. In step 550, where the amount of light recorded is more than a certain value (threshold), the image gain level may be decreased. Step 520 may be 30 repeated at a subsequent time. At full saturation exposure may be stopped 560. 52 WO 2004/082472 PCT/IL2004/000265 If the amount of light recorded is substantially equivalent to a determined saturation threshold (close in value to such a threshold such that the amount of light exposed can be assumed to be sufficient), a current gain level or light level etc., may be maintained and the exposure may be stopped when full saturation 5 occurs, or until a maximum exposure time (TM) is reached, whichever is first to occur. The process may then be repeated 570 for subsequent frames. In step 570, the above process is repeated from step 500, as, the device may operate across a series of imaging periods. However, the method need not be repeated. 10 According to one embodiment steps 500 to 520 may be complemented or replaced by a step wherein data from an environmental monitoring tool is analyzed, to determine if one or more particular data measurements, such as pH level, temperature level etc., are above, below or equal to a threshold for the particular measurement(s), or to one or more previous measurements. The 15 results of such a comparison may be used to determine whether an environmental change has occurred, and whether an appropriate gain level change is in order. For example, an in vivo capsule may be adapted to carry multiple measurement tools for measuring different aspects in the environment, including a light level indicator and a pH indicator. In frame A the capsule may 20 have measured levels i and ii using the two indicators listed above. In a second frame B it may be determined, for example, that both parameters i and ii have changed substantially from their measurements in frame 1. In the case where the light level indicator reflects a darkening of the environment, and the pH indicator indicate a higher acidity, it may be determined that the capsule has both entered 25 the body (a darker environment) and entered the stomach (increased acidity). Fig. 16B depicts a series of steps of a method for determining when an in vivo device has entered an area with different illumination, according to an embodiment of the present invention. In alternate embodiments, other steps, and other series of steps, may be used. 30 In step 600, a device, such as an in-vivo imaging device, turns on (operates) a light source. 53 WO 2004/082472 PCT/IL2004/000265 In step 610, the device records (and possibly integrates) the amount of light received to a light measurement element. This may be, for example, part of the imager, a sensor on the device, or possibly to an external sensor. In step 620, the device determines the amount of light recorded. 5 Furthermore, the device may calculate this amount of light recorded in relation to a saturation threshold or any other threshold, to determine a possible location of the device based on the amount of light recorded. For example, if the light recorded in a first frame is above a saturation threshold of, for example, 15 pixels out of the frame, this indicates that saturation has easily been attained, and the 10 device is assumed to be outside the body (in a light environment). If the light recorded in a second frame is below the same saturation threshold of, for example, 15 pixels out of the frame, this indicates that saturation has not been attained, and the device is assumed to be inside the body (in a dark environment). 15 In step 630, a decision may be taken to change operation mode of the device, depending on the amount of light recorded relative to a threshold value. In step 640, for example, if the amount of light recorded is less than a certain value (threshold), indicating that the device is located in a darker area, the device may change the mode of operation 640 to reflect this darker environment. 20 For example, the device may be configured to start operating in a fast-mode for a period of 10 minutes after entering the body, to enable fast imaging of the esophagus area. After determining that the device has entered the body, the timer may be initiated, so that after 10 minutes the device will change into a slower mode for the remainder of the procedure. 25 In step 650, for example, if the amount of light recorded is more than a certain value (threshold), indicating that the device is located in a lighter area, the device may change the mode of operation 650 to reflect this lighter environment. Fig. 16C depicts a series of steps of a method for determining an in vivo device's location, according to an embodiment of the present invention. In 30 alternate embodiments, other steps, and other series of steps, may be used. 54 WO 2004/082472 PCT/IL2004/000265 In step 700, a device, such as an in-vivo imaging device, operates at least one environmental measuring device, such as, for example, a pH level sensor and a light detection meter. In step 710, the device records a measurement, such as pH level for 5 example, received to the measurement device. This measurement device may be, for example, a sensor on or in the device and/or an external sensor. In step 720, the device determines the quantity and/or quality of the measurement recorded. In step 730, the device may determine a location in a body based on the 10 measurement data recorded, as compared with a threshold value or previous measurements etc. For example, if the pH level in a first frame is above a saturation threshold of, for example 7 on the pH scale, this indicates that the device is in a non-acidic environment, and may be assumed to be in the throat area (in an acidic-neutral environment). If the pH level recorded in a second 15 frame is below the same threshold of, for example, 7 on the pH scale, this indicates that the device is in a more acidic environment, and may be assumed to be in the stomach or intestine area, depending on the pH level recorded. In step 740, a decision may be taken to change operation mode of the device, depending on the measurement data recorded relative to a threshold or 20 alternative value. In step 750, for example, if the amount of measurement data quantity and/or quality is more or less than a certain value (threshold or other value), indicating (or verifying) that the device is located in a different area, the device may change the mode of operation to reflect this new environment. 25 The results of the above processes may be used to determine whether environmental conditions have substantially changed, based on results from various optional monitoring and/or measuring tools. The change required to be defined as "substantial" or "significant" may be determined for each case or by manufacture. 30 Typically, the various embodiments discussed herein may be implemented in a device such as device 30 (Fig. 2); however, such embodiments may be 55 - 56 implemented in a variety of imaging or sensing devices, varying in structure. The various functions and processes described above, including but not limited to processing, monitoring, measuring, analysing, defining, tracking, s comparing, computing, commanding, stopping exposure, increasing gain, decreasing gain, increasing exposure, decreasing exposure, changing mode etc. may be executed by, for example, a processor unit (e.g. 36 in Fig. 2). These functions or processes may additionally and/or 10 alternatively be implemented by the processor unit 36 alone, by alternative units, such as illumination control unit 40, telemetry unit 34, light sensing units 42, imaging unit 32 etc., or any combination of units. The methods and processes described may also be, embodied in 15 other sensing devices having other structures and other components. Alternatively, part or all of the analysis or control involved in the various methods presented may be performed by an external workstation or processing unit. It will be appreciated by those skilled in the art 20 that while the invention has been described with respect to a limited number of embodiments, many variations, modifications, combinations and other applications of the invention may be made which are within the scope and spirit of the invention. 25 In the claims which follow and in the preceding description of the invention, except where the context requires otherwise due to express language or necessary implication, the word "comprise" or variations such as "comprises" or "comprising" is used in an inclusive sense, 30 i.e. to specify the presence of the stated features but not to preclude the presence or addition of further features in various embodiments of the invention. It is to be understood that, if any prior art publication is referred to herein, such reference does not 35 constitute an admission that the publication forms a part of the common general knowledge in the art, in Australia or any other country. 22829851 (GHMatters) 16/06/10

Claims (16)

1. An in vivo imaging device comprising: a light source; an imager; and s a controller, wherein the controller is to, during an imaging period, operate the light source to emit white light, record the amount of the white light that is reflected to the imaging device, control the image gain level of the imager based on the amount of the white light 10 that is reflected to the imaging device, and capture and transmit an image frame.
2. The device of claim 1 comprising at least one light measuring element.
3. The device according to claim 2 wherein said at is least one light measuring element includes at least a portion of a set of pixels.
4. The device according to claim 2 or claim 3 wherein the at least one light measuring element includes at least one photo detector. 20
5. The imaging device of any one of claims 1 to 4, wherein said controller is to control at least one parameter selected from the group consisting of image gain level, illumination duration and illumination intensity.
6. A method for changing the operation mode of an in 25 vivo device comprising an imager, a light source, and a controller, the method comprising: across a series of imaging periods, operating the light source to emit white light, recording the amount of the white light that is reflected to the imaging device, 30 in response to the recorded amount, controlling an image gain level of the imager based on the amount of the white light that is reflected to the imaging device, and capturing and transmitting an image frame; measuring at least one environment parameter in at 35 least one environment surrounding the device; and when an environmental change is determined, changing the operating mode of the device. 22829851 (GHMatters) 1606/10 - 58
7. The method of claim 6, wherein said environmental change is at least one change selected from the group consisting of temperature change, pH level change and light level change. 5
8. The method of claim 6 or 7, wherein the controller determines when a significant environmental change is determined.
9. The device of anyone of claims 1 to 5, wherein the controller is to record the amount of the white light 10 that is reflected to the imaging device and control the image gain level, repeatedly during a plurality of time periods during the imaging period.
10. A method for changing the operation mode of an in vivo device, the method comprising: 15 operating a light source to emit white light, recording the amount of white light that is reflected to the device, in response to the recorded amount, controlling a gain level of an imager within the device based on the amount of the white light that is reflected 20 to the device, and capturing and transmitting an image frame; measuring at least one environment parameter in at least one environment surrounding the device using at least one environment measuring tool; and 25 when an environmental change is determined, changing the operating mode of the device.
11. The method of claim 10, wherein a controller is to record the amount of the white light that is reflected to light measuring element and control the gain factor, 30 repeatedly during a plurality of time periods during the imaging period.
12. A method of operating an in vivo capsule, the method comprising: during an imaging period, operating a light source 35 within the capsule to emit white light, record the amount of the white light that is reflected to the capsule, control the image gain level of an imager within the 22829851 (GHMatters) 16I10 - 59 capsule based on the amount of the white light that is reflected to the capsule, and capturing and transmitting an image frame.
13. The method according to claim 12 wherein s recording comprises recording using at least a portion of a set of pixels of the imager.
14. The method according to claim 12 or claim 13 comprising recording using a photo detector.
15. An in vivo imaging device substantially as io hereinbefore described with reference to accompanying Figures 2-16C.
16. A method for changing the operation mode of an in vivo device substantially as hereinbefore described with reference to accompanying Figures 2-16C. 15 22829851 (GHMatters) 16106/10
AU2004222472A 2003-03-23 2004-03-23 Apparatus and method for light control in an in-vivo imaging device Ceased AU2004222472B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
IL155046 2003-03-23
IL155046A IL155046A (en) 2003-03-23 2003-03-23 In-vivo imaging device capable of defining its location
PCT/IL2004/000265 WO2004082472A1 (en) 2003-03-23 2004-03-23 Apparatus and method for light control in an in-vivo imaging device

Publications (2)

Publication Number Publication Date
AU2004222472A1 AU2004222472A1 (en) 2004-09-30
AU2004222472B2 true AU2004222472B2 (en) 2010-07-22

Family

ID=32587515

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2004222472A Ceased AU2004222472B2 (en) 2003-03-23 2004-03-23 Apparatus and method for light control in an in-vivo imaging device

Country Status (5)

Country Link
EP (1) EP1610669A4 (en)
JP (1) JP2006524097A (en)
AU (1) AU2004222472B2 (en)
IL (1) IL155046A (en)
WO (1) WO2004082472A1 (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE20122488U1 (en) 2000-03-08 2005-12-15 Given Imaging Ltd. In vivo imaging system for use in applications such as imaging digestive tract, uses camera, illumination source and transmitter enclosed in capsule suitable for insertion into and passing through body lumens or cavities
US20060184039A1 (en) 2001-07-26 2006-08-17 Dov Avni Apparatus and method for light control in an in-vivo imaging device
US9149175B2 (en) 2001-07-26 2015-10-06 Given Imaging Ltd. Apparatus and method for light control in an in-vivo imaging device
US9113846B2 (en) 2001-07-26 2015-08-25 Given Imaging Ltd. In-vivo imaging device providing data compression
JP2006509574A (en) 2002-12-16 2006-03-23 ギブン イメージング リミテッド Apparatus, system, and method for selective actuation of in-vivo sensors
US8206285B2 (en) 2003-12-31 2012-06-26 Given Imaging Ltd. Apparatus, system and method to indicate in-vivo device location
JP4555604B2 (en) * 2004-05-10 2010-10-06 オリンパス株式会社 Capsule endoscope and capsule endoscope system
US7605852B2 (en) 2004-05-17 2009-10-20 Micron Technology, Inc. Real-time exposure control for automatic light control
JP4772357B2 (en) 2005-03-31 2011-09-14 オリンパスメディカルシステムズ株式会社 Light source device and imaging device
JP4855771B2 (en) 2005-12-20 2012-01-18 オリンパスメディカルシステムズ株式会社 In-vivo image capturing apparatus and in-vivo image capturing system
US8514278B2 (en) * 2006-12-29 2013-08-20 Ge Inspection Technologies Lp Inspection apparatus having illumination assembly
US8187174B2 (en) 2007-01-22 2012-05-29 Capso Vision, Inc. Detection of when a capsule camera enters into or goes out of a human body and associated operations
WO2008143246A1 (en) * 2007-05-22 2008-11-27 Olympus Corporation Encapsulated medical device and encapsulated medical system
JP2009034291A (en) * 2007-08-01 2009-02-19 Hoya Corp Capsule endoscope
JP5756752B2 (en) 2008-07-03 2015-07-29 セルカコール・ラボラトリーズ・インコーポレイテッドCercacor Laboratories, Inc. Sensor
US8515509B2 (en) 2008-08-04 2013-08-20 Cercacor Laboratories, Inc. Multi-stream emitter for noninvasive measurement of blood constituents
WO2010044483A1 (en) 2008-10-17 2010-04-22 オリンパス株式会社 Imaging device and imaging system
WO2010143692A1 (en) 2009-06-10 2010-12-16 オリンパスメディカルシステムズ株式会社 Capsule type endoscope device
WO2011066431A2 (en) * 2009-11-25 2011-06-03 Brigham And Women's Hospital, Inc. System and method for wireless biosensor monitoring
US8945010B2 (en) 2009-12-23 2015-02-03 Covidien Lp Method of evaluating constipation using an ingestible capsule
GB201016773D0 (en) * 2010-10-06 2010-11-17 Univ Leuven Kath Dynamic range enhancement through prediction of pixel integration time
JP5385469B2 (en) * 2011-01-20 2014-01-08 オリンパスメディカルシステムズ株式会社 Capsule endoscope
JP5926909B2 (en) 2011-09-07 2016-05-25 オリンパス株式会社 Fluorescence observation equipment
WO2016084500A1 (en) * 2014-11-28 2016-06-02 オリンパス株式会社 Capsule endoscope, capsule endoscope activation system, and examination system
US12114974B2 (en) 2020-01-13 2024-10-15 Masimo Corporation Wearable device with physiological parameters monitoring
CN117257204B (en) * 2023-09-19 2024-05-07 深圳海业医疗科技有限公司 Endoscope control assembly control method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5408263A (en) * 1992-06-16 1995-04-18 Olympus Optical Co., Ltd. Electronic endoscope apparatus
US6462770B1 (en) * 1998-04-20 2002-10-08 Xillix Technologies Corp. Imaging system with automatic gain control for reflectance and fluorescence endoscopy

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4532918A (en) * 1983-10-07 1985-08-06 Welch Allyn Inc. Endoscope signal level control
JP2598422B2 (en) * 1987-09-30 1997-04-09 オリンパス光学工業株式会社 Endoscope device
JP3041099B2 (en) * 1991-02-01 2000-05-15 オリンパス光学工業株式会社 Electronic endoscope device
IL108352A (en) * 1994-01-17 2000-02-29 Given Imaging Ltd In vivo video camera system
JPH08313823A (en) * 1995-05-15 1996-11-29 Olympus Optical Co Ltd Endoscopic image processing device
JP3428315B2 (en) * 1996-10-08 2003-07-22 株式会社東芝 Disc playback device
JP3351704B2 (en) * 1997-04-09 2002-12-03 ペンタックス株式会社 Image signal correction device
JPH11111795A (en) * 1997-10-07 1999-04-23 Ricoh Co Ltd Inspecting device for image-pickup element
JPH11305144A (en) * 1998-04-27 1999-11-05 Olympus Optical Co Ltd Endoscope device
WO2000074391A1 (en) * 1999-06-02 2000-12-07 Vista Medical Technologies, Inc. Interchangeable ccd camera with integral blemish compensation
IL131242A0 (en) * 1999-08-04 2001-01-28 Given Imaging Ltd A method for temperature sensing
JP2001203910A (en) * 2000-01-20 2001-07-27 Olympus Optical Co Ltd Video signal processor
WO2002026103A2 (en) * 2000-09-27 2002-04-04 Given Imaging Ltd. An immobilizable in vivo sensing device
AU2002249540A1 (en) * 2001-03-29 2002-10-15 Given Imaging Ltd. A method for timing control
DE60228266D1 (en) * 2001-06-18 2008-09-25 Given Imaging Ltd SWITCHABLE IN VIVO CAPSULE WITH A RIGID AND FLEXIBLE SECTION CIRCUIT BOARD
JP4794765B2 (en) * 2001-07-30 2011-10-19 オリンパス株式会社 Capsule endoscope
JP4744026B2 (en) * 2001-07-30 2011-08-10 オリンパス株式会社 Capsule endoscope and capsule endoscope system
JP4885388B2 (en) * 2001-09-25 2012-02-29 オリンパス株式会社 Endoscope insertion direction detection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5408263A (en) * 1992-06-16 1995-04-18 Olympus Optical Co., Ltd. Electronic endoscope apparatus
US6462770B1 (en) * 1998-04-20 2002-10-08 Xillix Technologies Corp. Imaging system with automatic gain control for reflectance and fluorescence endoscopy

Also Published As

Publication number Publication date
JP2006524097A (en) 2006-10-26
IL155046A0 (en) 2003-10-31
AU2004222472A1 (en) 2004-09-30
EP1610669A4 (en) 2009-04-22
IL155046A (en) 2013-12-31
EP1610669A1 (en) 2006-01-04
WO2004082472A1 (en) 2004-09-30

Similar Documents

Publication Publication Date Title
US9737201B2 (en) Apparatus and method for light control in an in-vivo imaging device
US8626272B2 (en) Apparatus and method for light control in an in-vivo imaging device
AU2004222472B2 (en) Apparatus and method for light control in an in-vivo imaging device
EP1411818B1 (en) Apparatus and method for controlling illumination or imager gain in an in-vivo imaging device
JP2004535878A5 (en)
US7347817B2 (en) Polarized in vivo imaging device, system and method
CN102458215B (en) Capsule type endoscope device
US20030028078A1 (en) In vivo imaging device, system and method
EP2353491B1 (en) Subject intra-corporeal introduction device and in-vivo information acquiring system
US8830310B2 (en) Capsule endoscope
IL160067A (en) Apparatus and method for controlling illumination or imager gain in an in-vivo imaging device
JP5896877B2 (en) Light control device

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)
MK14 Patent ceased section 143(a) (annual fees not paid) or expired