Abstract:
A CCD sensor arrangement comprises a CCD sensor, which comprises a detector having an active area comprising pixels that receive charges; a read-out register functionally connected with the aforesaid active area; means for transferring charges from the active area to the read-out register; at least two read-out wells functionally connected with the read-out register, said at least two read-out wells having different capacities; means for transferring charges from the read-out register to the at least two read-out wells; means arranged in the sensor or in functional connection with the sensor for measuring the signal generated by the charges read out or being read out from said wells; and selection means for deciding during read-out of charges from said active area of the sensor, at least partly on the basis of the aforesaid measured signal, whether the read-out well to be used is to be changed. At least two read-out wells have different capacities, and means arranged in the sensor or in functional connection with the sensor for measuring the signal generated by the charges, and selection means for deciding at least partly on the basis of the aforesaid measured signal whether the read-out well to be used is to be changed.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS  
       [0001]     This application is continuation-in-part of PCT applications PCT/FI2006/050151 and PCT/FI2006/050152, both of which are incorporated herein by reference. 
     
    
     FIELD OF THE INVENTION  
       [0002]     The present invention relates to a CCD sensor and to a read out arrangement according to the preambles of claims  1  and  13 . In addition, the invention relates to methods for expanding the dynamics of a CCD sensor according to the preambles of claims  16 ,  23  and  24 .  
       BACKGROUND OF THE INVENTION  
       [0003]     A CCD device (Charge Coupled Device) can be defined as being a semiconductor device wherein, due to the movement of electric charges, storage and collection of charges is possible. These charge transfer devices are used in dynamic, variable storage elements, which characteristically have a high information density. In CCD sensors intended for X-ray imaging, the charges used for image generation, which are formed on physical pixels, can be combined, binned. Binning in a CCD sensor produces virtually larger image pixels. However, in certain situations, handling the charge of these combined pixels may be problematic. Especially at higher signal levels, the signal coming from the image area may be so large that, with the selected binning, the charges can not be combined within the CCD sensor without a risk of saturation of the output amplifier. This can be partially taken into account by designing the read-out register and the charge well of the output amplifier so that they have charge capacities higher than the charge capacity of the pixels. However, if the charge well of the output amplifier is enlarged too much, then the voltage generated on it is reduced, and thus the signal to be produced is also reduced.  
         [0004]     At present, the resolution of digital imaging already approaches the level of film-based systems and may in some cases even exceed it. However, it is known that the dynamic range of CCD sensors, the ratio of the maximum signal to the open-circuit noise, to the basic sensitivity, is smaller than the dynamic range of traditional film-based systems. In this context, sensitivity may refer to resolution within background noise, in other words, to the signal size that can be resolved from background noise.  
         [0005]     A typical non-cooled CCD device working in MPP mode has a dynamic range of about 10.000:1 . . . 20.000:1. The figure giving the dynamic range represents the ratio of saturation voltage to RMS noise. If this dynamic range is effectively utilized, then it will be possible to exploit as many greyness levels as the A/D conversion used allows. For example, in the case of 14 bits, the total number of greyness levels available will be 16.384.  
         [0006]     However, these numeric values are not mutually comparable when film-based and digital systems are compared to each other. Even if a film system would utilize only a small proportion of the total dynamics, in practice there would still be a very large number of greyness levels available. If one considers e.g. one thousandth (1:1000) of the dynamics of the film, it can be shown that this range is divided into more than 16 separate levels.  
         [0007]     Moreover, CCD based sensors do not forgive in situations of overexposure as do film-based systems, in which the reciprocal law (gradual saturation, s-curve of the film) causes a soft saturation and along with this a “compression”, i.e. an expansion of dynamics. It is thus conceivable that one is dealing here with an in-built non-linearity, which can also be understood as a kind of gamma correction in the film itself. In digital sensors, a visible boundary, artefact, is produced as soon as the maximum point of the dynamic range is reached.  
         [0008]     The signal amplifier and A/D converter (A/D, Analog-to-Digital) connected after the sensor are designed with an aim to enable the entire dynamic range produced by the CCD sensor to be utilized. As mentioned above, existing CCD sensors can produce a dynamic range even exceeding 20000:1. In an ideal situation, the quantization step of the A/D converter is slightly below the CCD sensor&#39;s own noise level. However, this would mean that, in order to digitize the image, it would be necessary to use fast A/D conversion exceeding 14 bits.  
         [0009]     In other words, the charge received and contained in a pixel may be so large that it can not be handled in a binning situation in the read-out register and/or in the charge well of the output amplifier without a risk of saturation. Especially in the case of larger binning operations, for example 3×3 and 4×4 (horizontal direction×vertical direction, the number of times of reading from the image area to the output register and from the output register to the read-out well), this becomes a problem. The image formed in the image area is not saturated and it is perfectly usable, but it can not be read out without saturation with the binning in question.  
         [0010]     Both in cephalostatic use (Ceph) and in the panoramic image (Pan), there are areas below the jaws, which receive direct radiation without any intermediate tissue attenuating the radiation. In these situations, among others, there is an obvious risk of saturation if the system is otherwise tuned for optimal reception of the signal coming through the object. This makes imaging of e.g. soft tissue areas impossible, and in the areas of saturation all the image information is lost.  
       BRIEF DESCRIPTION OF THE INVENTION  
       [0011]     Thus, the object of the invention is to develop a method and an apparatus implementing the method so as to allow the above problems to be solved. The object of the invention is accomplished by a method and system characterized by what is stated in the independent claims. Preferred embodiments of the invention are disclosed in the dependent claims.  
         [0012]     The invention is based on changing binning and/or output well capacity dynamically during sensor read-out.  
         [0013]     The method and system of the invention have the advantage of making it possible to expand the dynamic range of the CCD sensor and thus to prevent the sensor or a part of it from getting saturated. 
     
    
     BRIEF DESCRIPTION OF THE FIGURES  
       [0014]     In the following, the invention will be described in detail with reference to preferred embodiments and the attached drawings, wherein  
         [0015]      FIG. 1  presents a device for increasing the dynamics according to a preferred embodiment;  
         [0016]      FIG. 2  illustrates the structure of image data;  
         [0017]      FIG. 3  presents by way of example a method for performing imaging and a logic for controlling the AGC function of an FPGA device during imaging;  
         [0018]      FIG. 4  presents a table showing the typical charge handling capacities of the CCD sensor used;  
         [0019]      FIG. 5  represents by way of example a charge capacity distribution in all units capable of electron charge transfer; and  
         [0020]      FIG. 6  presents a four-chip CCD sensor and its control blocks. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0021]     In the following, the invention and its preferred embodiments will be described by way of example with reference to a typical CCD sensor (manufactured e.g. by Atmel, Thomson) and charge capacity specifications optimized by also considering an automatic gain control function (AGC, Automatic Gain Control). The sensor may have e.g. the following properties:  
         [0022]     Saturation charge of a separate single pixel (size: 33 μm×33 μm): 600.000 electrons.  
         [0023]     Saturation charge of read-out register: 
        a. 1.800.000 electrons.        
 
         [0025]     Saturation charge of output amplifier A: 
        a. 2.400.000 electrons.        
 
         [0027]     Saturation charge of output amplifier B: 
        a. 4.800.000 electrons.        
 
         [0029]     When the sensor is operated in the horizontal direction (TDI direction, Time Delay Integration), with 3×3 binning the read-out register can hold a 100% signal of 3 successive pixels (3×600K=1800K, K=Kilo=1000). With 4×4 binning, four horizontal pixels charged to 75% of their capacity (1800K/4/600*100) can be summed without overflow. Overflow may mean that e.g. an electronic component, such as a capacitance, has no capacity left for additional charges. In overflow in the image area, an extra electron charge may move in the horizontal direction, and in overflow in the output register it may move in the vertical direction.  
         [0030]     In the vertical direction (read-out direction), the situation is as follows. With 2×2 binning, 2 pixels having a 50-% charge can be summed to one output A and 3 pixels with a 100% charge to a second output B without overflow. With 3×3 binning, 3 pixels having 44% of the charge can be summed to output A and 3 pixels having 88% of the charge to output B without overflow. With 4×4 binning, 4 pixels with a 25% charge can be summed to output A and 4 pixels with a 50-% charge can be summed to output B without overflow.  
         [0031]     From this it can be seen that even the less sensitive output B is unable to handle the signal coming from the image area without getting saturated if the signal exceeds 25% of the charge capacity of the physical pixel when output A is used. This situation can be corrected by applying the invention and its preferred embodiments.  
         [0032]      FIG. 1  presents a CCD sensor for expanding dynamics according to a preferred embodiment. Here, reference number  1 - 1  represents an entire CCD sensor module, a detector. The active area of the detector, which comprises charge-receiving pixels, is indicated by a reference number  1 - 2 . This image-forming surface in question may be a substantially even structure of any shape.  
         [0033]     For example, the image information of a two-dimensional CCD sensor can be read out using a read-out register  1 - 4  placed on at least one edge, the register being functionally connected with said active area. Into this register it is possible to load e.g. one pixel column at a time. The pixels in the pixel column may be combined with each other, i.e. binned. The sensor also comprises means for transferring the charges to an output  1 - 4   a ,  1 - 4   b  of the read-out register  1 - 4 . After the transfer, the register can be read e.g. serially by transferring the charge one pixel at a time, binned or without binning, into a charge well  1 - 6 ,  1 - 8  of the output amplifier, from where it can be further transferred out  1 - 10 ,  1 - 2  from the CCD sensor  1 - 1 .  
         [0034]     Thus, by using suitable arrangements, the charges can be transferred in the register in a desired direction, in the direction of a lower-capacity output well or in the direction of a higher-capacity output well. The choice of the output well to be used during imaging is optimized dynamically during imaging, so that the output well to be used and/or the size of the binning are/is selected e.g. by electronics, a suitable selection program or a combination of these.  
         [0035]     An output well  1 - 6 ,  1 - 8  of the output amplifier may be located at either end of the register  1 - 4 , or alternatively two or more wells and/or amplifiers may be placed at one end of the register or at least one well may be placed at each end of the register. According to the invention and a preferred embodiment of it, the read-out register has at each end of it at least one charge well, read-out well  1 - 6 ,  1 - 8  and amplifier functionally connected with it.  
         [0036]     An amplifier and/or buffer and/or buffer amplifier may be functionally connected with the well.  
         [0037]     The dual amplifiers in question may be designed for different uses. For example, one of the amplifiers can be optimized for a so-called slow-scan mode, in which case the noise can be optimized to be as small as possible at the cost of speed. The other amplifier may be optimized for a so-called high-speed mode, in which case the reading rate can be optimized to be as fast as possible, but at the cost of noise.  
         [0038]     However, in both traditional amplifiers, the output amplifier&#39;s charge wells have had the same capacity. According to the invention and its preferred embodiments, at least two output wells having different capacities are produced. The capacities preferably differ from each other substantially e.g. so that the larger output well has a capacity about twice that of the smaller output well. Other ratios can be used as well. If the number of wells is greater than two, then the capacities of at least two wells may differ from each other.  
         [0039]     Thus, the invention and its preferred embodiments are based on the use of at least two charge wells of different capacities and on the possibility of dynamically selecting during read-out the output well to be used. This selection can be made depending on the signal, on the basis of signal data, e.g. image signal.  
         [0040]     As compared to a situation where only one output amplifier is used or, on the other hand, where two output amplifiers having the same capacities are used, this arrangement provides the advantage of allowing saturation of the internal shift wells and read-out wells (not of the image area) of the CCD sensor to be avoided. In addition, by applying the invention and its preferred embodiments, the A/D converter can be prevented from being saturated. Both situations are very likely to occur when the charges of pixels are being combined, i.e. binned, with pixels larger than 2×2.  
         [0041]      FIG. 2  illustrates the structure of an image data set. In the figure, the lowest 14 data bits (AD 0 -AD 13 :  FIG. 6 :  6 - 51 ,  6 - 53 ,  6 - 55 ,  6 - 57 ) may come from the 16-bit summer ( FIG. 6 :  6 - 41 ,  6 - 42 ,  6 - 43 ,  6 - 44 ) of the image data processing module of the FPGA device ( FIG. 6 :  6 - 40 ) (FPGA, Field Programmable Gate Array) and from the register ( 6 - 45 ,  6 - 46 ,  6 - 47 ,  6 - 48 ) which can store the intermediate sums. This summer can be reset before the sampling of each pixel, and the 14-bit result obtained from the A/D converter can be added once to this summer. It is also possible to add the value +1 to the sum to ensure that the result is always greater than 0. This result is a 14-bit number and the highest 2 bits (ADD 0  and ADD 1 ) are zeros.  
         [0042]     In a certain case, the values of four successive A/D converters are added to this summer, whereby the result approaches the 16-bit maximum. If one additionally considers the fact that each chip of the CCD sensor may have two outputs (Output A and Output B, one of which may give a double signal with the same radiation), one is able to note that the overall dynamics of the system is 17 bits, i.e. 131 072 greyness levels (16384×4×2).  
         [0043]     One CCD sensor ( FIG. 6 :  6 - 20 ) may consist of one or more, e.g. four chips ( FIG. 6 :  6 - 21 ,  6 - 22 ,  6 - 23 ,  6 - 24 ) seamlessly connected one after the other. A separate clock signal can be applied to each chip. In Ceph operation, two identical CCD sensors are used. Each chip has two outputs ( FIG. 6 :  6 - 25  . . .  6 - 32 ). One of these may be a more sensitive so-called high-sensitivity output, i.e. A output, and the other one may be a less sensitive so-called high-capacity output, i.e. B output. Thus, one CCD sensor may have a total of 8 digitizing outputs, of which e.g. only four outputs are used simultaneously. In practice, the ratio of the capacities of the A and B outputs is very precisely ½, i.e. the signal of the B output is equal to half the signal of the A output with the same amount of radiation.  
         [0044]     If more than one chip is used, each one of the different chips can handle data obtained from a given part of the patient and/or function in a different mode, and each chip can be controlled individually or separately.  
         [0045]     The output in use can be selected (switches  6 - 33  . . .  6 - 36  in  FIG. 6 ) e.g. manually via a control register. Alternatively, the AGC function or a test function may decide about the output. All 8 outputs can be digitized by A/D converters, the number of which may be e.g. three. Each A/D converter may contain a 3-input multiplexer, i.e. selector, so the total number of channels to be digitized in this case is 9. An extra tenth channel is in test use, which can be applied to measure the noise of the electronics and the A/D conversion.  
         [0046]      FIG. 6  presents a situation where the selecting element  6 - 33  . . .  6 - 36  after the output wells  6 - 25  . . .  6 - 32  routes one of the wells to one A/D converter  6 - 37 . Alternatively, it is possible to perform an A/D conversion on the outputs of both wells and only then to have the selection element make a choice as to the one of the wells whose digitized signal is to be used. The selection element may also form part of the A/D converter and it may be e.g. an analog or digital switch.  FIG. 6  also illustrates a possible solution  6 - 100  for bringing clock signals and/or control signals from the FPGA element  6 - 40  to the CCD sensor  6 - 20 .  
         [0047]     AGC function refers to automatic control of level or gain. However, it does not refer to the gain of the programmably variable PGA amplifiers (Programmable Gate Array) within the A/D converters, the gain of which amplifiers can be adjusted e.g. in the range 1 . . . 6. This gain can be adjusted separately for each CCD chip, and the adjustment is used primarily for the optimization of basic sensitivity in accordance with the imaging conditions (Pan/Ceph).  
         [0048]     The AGC method can be utilized in a camera e.g. in the following two ways. Either one of the output amplifiers A or B of each CCD sensor can be used as far as applicable. Since the B amplifier has a signal handling capacity about twice that of the A amplifier, virtually one additional bit is obtained in the A/D conversion. Alternatively, it is also possible to use binning performed outside the CCD sensor. However, this is only possible when binning done in the direction of the read-out register.  
         [0049]     If in cases of high binning, e.g. 4×4 binning, the B output amplifier is getting saturated, then it is possible to shift to a lower binning within the CCD sensor, e.g. to 4×2 binning. The pixel values can now be sampled twice by the A/D converter, and the summing can be performed e.g. within the FPGA device in an arithmetic unit. Multiple summing of the offsets caused by the electronics can be compensated for by computer software. This external summing may even be in the form of 4×1 binning and 4 summing operations.  
         [0050]     To reduce the binning, instead of summing e.g. four charges, it is possible to combine only 2 pixels in the charge well, digitize the pixels, take the next two pixels, digitize the pixels and only then sum the digitized results digitally.  
         [0051]     In the above-described manner, the overall dynamics can be increased to 17 bits, of which 14 bits are obtained from the A/D conversion, 1 bit from the output of the A or B amplifier and 2 bits from the external summing, which, as stated above, can be performed 4 times.  
         [0052]      FIG. 3  illustrates by way of example a method for performing imaging and presents the control logic controlling the automatic gain control (AGC) of the FPGA device during imaging. Imaging is normally started with a selected initial value, default binning. At the beginning, output A of each CCD sensor chip can be used. As the read-out register of each chip can be controlled individually, it is possible to choose on a chip-specific basis the direction in which the charge is to be shifted. As stated, the charge can be shifted either in the direction of output A ( 1 - 8 :  FIG. 1 ) or in the direction of output B ( 1 - 6 :  FIG. 1 ).  
         [0053]     The logic of the FPGA device can continuously monitor the A/D conversion signal of each chip separately. At stage  3 - 2 , a new vertical column is read from the CCD sensor into memory. At stage  3 - 4 , a check can be carried out to see whether even one of the currently used A/D-converted CCD-sensor outputs ( FIG. 6 :  6 - 50 ,  6 - 52 ,  6 - 54 ,  6 - 56 ) produced a signal exceeding e.g. 75% from the A/D converter. (Information regarding the signal size can be transferred to an inference block and e.g. to a status machine ( FIG. 6 :  6 - 50 ,  6 - 52 ,  6 - 54 ,  6 - 56 ). Thus, if the signal or a part of it exceeds a predefined value, e.g. ¾ of the range of the A/D converter, then it is possible to shift to using the less sensitive output, output B, in those chips that meet this condition. If all the outputs are below the first threshold value, then a check can be made at stage  3 - 6  to determine whether all the currently used CCD-sensor outputs produced a signal below a second predefined threshold value, e.g. 25%, from the A/D converter. If all the outputs are below the second threshold value, then a check can be made at stage  3 - 8  to establish whether the smallest register-direction binning outside the CCD sensor has already been reached. If the smallest external binning has not yet been reached, then the procedure can move on to stage  3 - 10 , where, on the next vertical column, it is possible to shift to an external binning size reduced by one step. On the other hand, if the smallest external binning has already been reached, then at stage  3 - 12 , on the next vertical column, for those B-outputs of the CCD sensor which remain below the value, it is possible to shift to using output A. In other words, if the signal correspondingly remains e.g. entirely below a certain predefined second value, e.g. ¼ of the range of the A/D converter, then it is possible to shift to using the more sensitive output, output A, in those chips that meet this condition.  
         [0054]     If at stage  3 - 4  at least one output exceeds 75% of the signal from the A/D converter, then the procedure can go on to stage  3 - 14 . Here a check can be made to see whether any one of the outputs having produced a signal exceeding 75% is a B output. If not, then for the exceeding A outputs of the sensor it is possible to shift to using the B output on the next vertical column at stage  3 - 16 .  
         [0055]     If the signal still exceeds ¾ of the range of the A/D converter in any one of the A/D converters of the CCD sensor chips although a shift to using output B has been made, i.e. where the B output is digitized, then at stage  3 - 18  a check can be made to determine whether the maximum register-direction external binning has already been reached. If the register-direction external maximum binning has not yet been reached, then at stage  3 - 20  on the next vertical column it is possible to shift to using a register-direction arithmetic external binning size increased by one step e.g. for all chips. If necessary, the binning can be changed gradually from 4×4 level to 1×4 level and back to 4×4 level. This reduction of binning is not externally visible in the image data because, in addition to the binning done inside the sensor, binning is also performed after the A/D conversion, in other words, several A/D conversions per pixel can be performed. The result is still the same, because this is taken into account in the compensation of dark current. Dark current may refer to the leakage current caused by non-idealities of silicon, as a result of which electrons leak into pixels, producing a base signal. The signal may be doubled as the temperature always rises about +7° C. The dark current is not uniform but may have a different effect on different pixels.  
         [0056]     The structure and timing of the FPGA device can be optimized even in regard of this property. At stage  3 - 22 , the use of the A output can be resumed for all CCD sensors whose B output has a level below the second threshold value, e.g. below 25%. If external maximum binning in the register-direction has already been reached, then the procedure can move on from stage  3 - 18  to stage  3 - 24 . Likewise, after stages  3 - 10 ,  3 - 12 ,  3 - 16  and  3 - 22  the procedure can move on to stage  3 - 24 , to await the digitization of the next vertical column.  
         [0057]     Thus, if the AGC function has been activated, in the gain control automatics the camera head can independently make its conclusions regarding binning and the A/B outputs to be used, in accordance with predefined conditions. The logic of the FPGA device can be so constructed that it comprises a hysteresis to prevent jumping from one output to another. The image data being produced can be marked by the camera head to allow the computer software to carry out corresponding actions required in the processing of image data regardless of e.g. how the virtual pixels have been produced.  
         [0058]     According to the invention and its preferred embodiments, when at least two different output wells having different capacities are used, the status diagram in FIG.  3  can be presented in the following form. When the lower-capacity output well is being used, a check is made to determine whether the signal or a part of it exceeds the first predefined value, e.g. value 75%. If this is the case, then a shift to using the output well of higher capacity is made. Again, when the higher-capacity output well is being used, a check is made to see whether the signal or a part of it remains below the second predefined value, e.g. value 25%. If this is the case, then a shift to using the lower-capacity output well is made.  
         [0059]     It is also possible to extend the status diagram so that it comprises more than two output wells. It is then possible to shift from using a smaller output well to using a larger output well and further the next output well, e.g. a still larger output well. Correspondingly, it is possible to shift from using a larger output well to using a smaller output well and further the next output well, e.g. a still smaller output well. It is further possible to use, instead of at least two output wells of different capacities, an output well having an adjustable capacity.  
         [0060]     As described above, in the start-up it is possible to set out in a predetermined manner with all chips of the CCD sensor. The starting situation may be fixed and always the same: output A for all CCD sensors, normal selected CCD sensor pixel binning, no external binning outside the CCD sensor. Thus, imaging can always be started from maximum sensitivity with the selected pixel size. External binning outside the CCD sensor to be implemented by summing can also be defined separately, if it is not desired that the AGC function automatically shifts to the lowest possible sensitivity. It is also to be taken into account that after the ENABLE signal has been activated e.g. internally, the FPGA device executes a calibration sequence in which both the A direction and the B direction can be read alternately forwards or backwards. During this calibration, the AGC function can be automatically disabled, and, when selected, it can only be activated after the calibration sequence.  
         [0061]     As described above, when automatically moving in the less sensitive direction, on the next column it is possible, if allowed, to shift to using the B output of the CCD sensor chip. This can be used if, when the A output is being used, there are e.g. n A/D conversions exceeding the 75% level. This consideration can be implemented individually for all chips of four or eight pieces. The number n can be selected within the range of 1 . . . 16. The default can be assumed to be 1. The actual number to be used depends on how many defective rows producing too large a signal there are at the most in one and the same chip.  
         [0062]     If it is possible or allowed, on the next column the procedure can shift to using a smaller register-direction binning internally within the entire sensor if, of the A/D conversions of the B output of any one of the chips of the CCD sensor 1 . . . 16 pcs, still exceed 75%. At the same time, possible chip-specific shifts from output B to output A can be implemented, this allowing possible increases in sensitivity. In the shift from output A to output B, decreases in sensitivity can be disabled. In this situation, simultaneous AB sensitivity decreases can be prevented if at the same time a shift to external binning is made. Otherwise, the signal of these outputs may fall to one fourth instead of one half.  
         [0063]     When a shift is made automatically in the more sensitive direction, on the next column it is possible to shift to using a larger register-direction internal binning within the CCD sensor, unless the largest possible binning is already being used, if a maximum of m pcs of the A/D conversions of the outputs of the chips using the B output exceed 25%. The number m can be selected in the range of 1 . . . 16 and the default value can be considered as being the value 1. The actual number to be used may depend on e.g. how many defective, saturated rows producing too large a signal there are at most in one and the same CCD chip.  
         [0064]     In this case, in chip-specific shifts from output B to output A that may take place, increase in sensitivity can be disabled, and in shifts from output A to output B decrease in sensitivity can be enabled. In this situation, simultaneous AB sensitivity decreases can be disabled automatically if at the same time a shift is made to smaller external binning. Otherwise the signal of these outputs would be quadrupled instead of doubled.  
         [0065]     If the A/D conversion of the output of any chip does not exceed 25% when the B output is being digitized, then on the next column a shift to using the A output of the chip can be made.  
         [0066]     A corresponding procedure can be followed when the Ceph method is being used in a CCD sensor head containing two CCD sensor packages. The FPGA device of the CCD sensor (DIMAX2) is able to separately control the read-out direction of the register of a total of eight discrete chips and to collectively control the vertical binning of all the chips.  
         [0067]     Arranging for the vertical binning to be differently sized for different chips of the CCD sensor is also possible, although it involves more complexity in both the hardware and software required.  
         [0068]     When the gain is altered in the above-described manner, the system noise and X-ray quantum noise present in the signal may also be different in magnitude on different outputs (output A/output B) and/or with A/D binning. The noise may be reduced when binning is done using an A/D converter. If necessary, this can be taken into account in the software, where noise can be summed artificially onto those areas where it is smaller due to the binning method.  
         [0069]     In some pixels, dark current can be reduced several times, depending on the binning method. This can be accomplished e.g. mathematically and via software. If necessary, dark current calibration and gain calibration can be performed for both the A output and the B output. The FPGA device allows measurement of the signals of both outputs.  
         [0070]     However, it is to be noted that in the case of small binning sizes (2×2 or 1×1), the automatic gain control function is not of use.  
         [0071]      FIG. 4  presents a table showing typical charge handling capacities of a CCD sensor used. In the figure, column  4 - 2  represents the capacity and column  4 - 4  represents the number of electrons. It can be seen from the table that, when the capacity of one pixel (33 μm×33 μm) is 1 million electrons, the capacity of the read-out register is 3 million electrons, the capacity of output amplifier A is 2.4 million electrons and the capacity of output amplifier B 4.8 million electrons. The guaranteed minimum capacities are at a level about 20% lower.  
         [0072]      FIG. 5  presents by way of example a charge capacity distribution in units capable of electron charge transfer. Block  5 - 2  represents four pixels in the image area with a typical saturation, which is about 1 million charges, at a minimum 800000 charges. The saturation value of each pixel is about 0.8 . . . 1Me.  
         [0073]     Each pixel in the image area can be combined with a pixel in the summing register. Block  5 - 4  represents four summing register pixels with a typical saturation value, about 3 million charges, and the value at its minimum, about 2.4 million charges. Thus, the saturation value of each pixel is about 2.4 . . . 3 million charges.  
         [0074]     Each pixel in the summing register can in turn be combined with a read-out register. Block  5 - 6  represents the typical saturation and minimum values of four read-out registers, 3 million charges and 2.4 million charges, respectively. Block  5 - 8  represents a typical saturation value of output well B, about 4.8 million charges, and minimum value, about 4 million charges, respectively. The output signal  5 - 9  of output well B is typically about 3 volts, at a minimum about 2 volts. Block  2 - 10  again represents a typical saturation value of output well A, about 2.4 million charges, the minimum value of this amount of charge being 2 million charges. The output signal  2 - 11  of output well A is typically about 3 volts, at a minimum about 2 volts. In  FIG. 2 , the basic sensitivity is about 60 mV/mR with 3×3 binning. The pixel size is about 99 micrometers.  
         [0075]     From the example in  FIG. 5 , it is possible to derive the situation in the horizontal direction. In this case, with 4×4 binning it is possible to bin  4  horizontal pixels from the image area, the image areas having a 75% degree of fullness (3000000/4=750000), without overflow occurring in the read-out register. With 3×3 and smaller binning sizes, pixels in the image area can be binned freely into the read-out register without overflow occurring in it.  
         [0076]     However, it is to be noted that the output wells have to be designed to be sufficiently small to avoid a loss of sensitivity of the CCD device. The output voltage  5 - 9 ,  5 - 11  is then suitable for the A/D conversion, so that it is sufficient in respect of both signal-to-noise ratio and resolution. This may involve limitations, even when output wells of different capacities are used.  
         [0077]     In the vertical direction, the read-out direction, the total signal level in the case of 4×4 binning is about 4×4×1 Me=16 Me (million electrons). This is about 6.6 times more than the capacity of output well A, and about 3.3 times more than the capacity of output well B. Thus, with this binning, the largest average charge to be handled, for the whole capacity of e.g. a 33-μm pixel before saturation of the output well, is about 15% of the value obtained when the A output is used and about 30% of the value obtained when the B output is used.  
         [0078]     When 3×3 binning is used, the total signal level is about 3×3×1 Me=9 Me. This is about 3.75 times more than the capacity of output well A and about 1.875 times more than the capacity of output well B. Thus, with 3×3 binning, the largest average charge to be handled, for the whole capacity of e.g. a 33-μm pixel before saturation of the output well, is about 26.6% when the A output is used and about 13.3% when the B output is used.  
         [0079]     When 2×2 binning is used, the total signal level is about 2×2×1 Me=4 Me. This is about 1.66 more than the capacity of output well A. However, output well B is large enough to hold this entire 4-Me capacity. Therefore, with this binning the largest average charge to be handled, for the whole capacity of e.g. a 33-μm pixel before saturation of the output well, is about 60% when the A output is used, but about 100% when the B output is used.  
         [0080]     If no binning is done, the total signal level is about 1Me, i.e. the same as the level of the pixel. In this case, both the internal registers and the output wells can handle the signal without a risk of saturation.  
         [0081]     From  FIG. 5  it can be seen that the less sensitive B output is unable to handle the signal coming from the image area with 4×4 binning without being saturated if the signal exceeds about 30% of the charge storing capacity of the physical pixel. However, this problem can be solved by applying the invention and its preferred embodiments.  
         [0082]     According to the invention and its preferred embodiments, the sensitivity and therefore the dynamics can thus be increased by several different methods. The dynamics can be increased e.g. by simply changing the binning. The binning can be changed by shifting to a higher or lower binning level. The binning can be changed several times and the binning can be changed e.g. externally outside the CCD sensor.  
         [0083]     Instead of changing the binning, it is also possible to make a shift to using an output well of larger capacity. Thus, instead of using the A output, it is possible to make a shift to using the B output, which has a larger capacity. It is also possible to make a further shift to using another output well, e.g. a still larger output well.  
         [0084]     As additional alternatives for increasing the dynamics, it is possible to first make a shift to using an output well of larger capacity and then additionally to change the binning, or it is possible to first change the binning and then additionally to make a shift to using an output well of larger capacity.  
         [0085]     When the sensitivity, dynamics of the arrangement is to be changed, this can be done by changing the binning at least partially in response to a control signal. The control signal can be defined e.g. beforehand, before changing the binning. The control signal may also be based on a direct or indirect signal, which may be dependent on e.g. the amount of light seen by the CCD sensor. Alternatively, the control signal may be based on the signal read out from the CCD sensor. The control signal may also be based on some other signal.  
         [0086]     The dynamics of the arrangement can be changed during imaging or before or after imaging. The binning can be changed e.g. between the image area and the shift register and/or between the shift register and the output register.  
         [0087]     Moreover, the arrangement may comprise means for normalizing the image signal. In the normalization, the image can be processed in such a way that the image(s) subsequently looks/look like a visible picture/visible pictures, e.g. so that no changes occur in the gray scale. The normalizing means may comprise digital summing of the signals produced by pixels physically adjacent to each other on the sensor and/or correction of dark current, which may depend on the binning, and/or gain. The summing and/or correction in question can be implemented partly or completely e.g. electronically and/or via software.  
         [0088]     The aim of the invention and its preferred embodiments is thus to expand the dynamic range of the CCD sensor e.g. by external means to be as wide as possible. According to the invention and its preferred embodiments, the amplifiers can be optimized in respect of noise and speed e.g. for real-time TDI read-out of an X-ray image when the capacities of the charge wells are different. This procedure allows the dynamic range handled by the CCD sensor to be e.g. doubled or quadrupled when larger binning sizes, e.g. over 2×2 binning, are used.  
         [0089]     In addition, in the arrangement the signals of both output amplifiers can be digitized either simultaneously or alternately. The choice of which one of the two output amplifier signals is to be used depends on the signal itself. With a suitable arrangement, it is possible in a CCD sensor, which may consist of a plurality of CCD sensor chips, to handle the signal of each CCD sensor chip separately and likewise to decide separately which one of the amplifiers is to be used in each chip. This decision can be made column for column, and thus the signal level can be monitored dynamically and maximized over the entire image area. The automatic selection of register read-out direction and therefore selection of the amplifier can be made e.g. independently, by means of the controlling FPGA device. The information as to which amplifier has been used can be transmitted in the image data separately line by line and also separately for each CCD so that the calibration program will be able to take this into account in the processing of image data. Image data can be shifted at 16 bits/pixel even in the case of a 14-bit conversion.  
         [0090]     If e.g. a 14-bit A/D conversion is used, it can easily be increased virtually to a 15-bit conversion (doubling of dynamics, if the capacity ratio of the wells of the output amplifiers is 2:1) still using the same A/D conversion.  
         [0091]     In a CCD sensor camera it is thus possible to select whether output A or output B is to be used. This selection can be made e.g. manually or automatically using an AGC device separately for each chip, e.g. for all eight chips. Yet both register-direction binning and horizontal binning are always the same for all chips. If this procedure were not followed, the image data produced to the computer would contain pixels of different sizes. Even if the camera head of the camera shifts to using a smaller binning size internally in the CCD sensor, the virtual pixels remain the same size. A missing binning within the sensor can be replaced invisibly by A/D binning.  
         [0092]     In other words, the binning is common to all the chips, whereas the A/B direction can be selected individually either manually or automatically with the help of the AGC device separately for each chip. It is also possible to differentiate the AD binning on a chip-specific basis.  
         [0093]     In a preferred embodiment, some of the chips may shift back to using the more sensitive A output, whereas the other chips may produce a signal so large that both the B output and external binning outside the CCD device are required. In other words, if the B output of any one of the chips produces too large a signal so that a shift has to be made to using a smaller internal binning, the other chips can freely move back in the A-direction if the signal in them falls too low. The control logic for the A/B outputs, i.e. for a total of e.g. 8 chips, may be separate, but the FPGA device may have a common binning logic within it.  
         [0094]     According to the invention and its preferred embodiments, the dynamics of the A/D converter of the CCD sensor (the DIMAX2 device has a 14-bit A/D converter=16384 discrete levels) can be expanded e.g. to be eight times higher (17 bits=131072 discrete levels). This expansion takes place in the CCD sensor head (DIMAX2) automatically and depending on the image signal. The dynamics can be doubled when a shift is made to using the output well of larger capacity instead of the smaller output well. The dynamics can be further increased fourfold when a shift is made to using 4×2 binning instead of 4×4 binning and after this to using 4×1 binning. In all, by this way the dynamics can thus be increased by the aforementioned amount, in other words, the dynamics can be octupled.  
         [0095]     The sensor is able to send the image data in a genuine 17-bit format to the computer. Moreover, it is to be noted that the image data can be compressed on the computer to a 12-bit format (in future to a 16-bit format) as soon as the minimum and maximum intensities are known. Regardless of this, it is preferable to image the object itself using maximum dynamics. Gamma correction can be performed simultaneously while the image data is being converted to 12-bit format, so that maximal dynamics can be preserved in the final image.  
         [0096]     Pixel binning can also be performed alternately using binning where two pixels are binned in the register direction of the CCD sensor and sampled and after this one further pixel is digitized without binning and this result is added to the previous binned pixel. This binning method can be used if the selected original binning in the register direction is about three-fold and if it is necessary to move in the less sensitive direction while the AGC device is in an activated state.  
         [0097]     During this 3× binning there may occur errors of symmetry when a shift is made to external summing binning, if 2 pixels binned within the CCD sensor are summed first and then additionally one separate CCD device. However, even this situation can be taken into account by software.  
         [0098]     The AGC function is only dependent on register-direction binning. Binning in the horizontal direction, in the TDI direction, is of no consequence. Horizontal binning may be different than vertical binning. In this case, however, the pixels produced are not the size of an equilateral square.  
         [0099]     The invention and its preferred embodiments also provide means for ensuring that that the CCD sensor has separate outputs for at least two capacities.  
         [0100]     An arrangement according to the invention and its preferred embodiments can be integrated on a single CCD chip using one or more microcircuits. It is also possible to additionally integrate e.g. PGA amplifiers in the CCD pre-stages of the device. The gain of these amplifiers is adjustable e.g. in the range of x1 . . . x6 in 64 steps (at present x1).  
         [0101]     By applying the invention and its preferred embodiments and adjusting the gain to a suitable value relative to the signal level (Ceph/Pan), an optimal result can be achieved in respect of both noise and dynamics. Since the signal level particularly in Ceph images is very low, extra gain can be utilized to reduce subsequent image processing artefacts and system noise. Moreover, the device according to the invention and its preferred embodiments still prevents saturation. Also, for instance, it is possible in the same skull imaging to have the soft tissue areas included in the image e.g. via software (soft-tissue filter).  
         [0102]     A CCD sensor according to the invention and its preferred embodiments produces 16-bit image data, pixels, with very high dynamics, the structure of such image data being illustrated by way of example in  FIG. 2 . As shown, 2 bytes are needed to represent the grayness level of a pixel. The first byte occurring in the data flow contains the lower 8 bits (AD 0 -AD 7 ) while the byte coming next contains the upper 8 bits (AD 8 -ADD 1 ). The A/D conversion in itself is a 14-bit conversion. This bit count of the A/D conversion is justifiable by the fact that the system&#39;s own noise is very low.  
         [0103]     Thus, the CCD sensor according to the invention and its preferred embodiments solves the problems of limited dynamic range and slow recovery from an saturated situation. By using a 14-bit conversion and keeping the system noise at a low level, an ideal situation is achieved where one step of the A/D converter corresponds to the noise level of the output amplifier of the CCD sensor. The signal-to-noise ratio of the final image is determined by the quantum noise of the X-ray beam. In a normal imaging situation, the two topmost bits (ADD 1  and ADD 0 ) of the 16-bit pixel value may be zeros.  
         [0104]     However, exceptions occur in two situations. The function of the automatic gain control according to the invention AGC and its preferred embodiments may, in the case of a large amount of radiation, have transferred binning of the CCD sensor pixels into a form in which register-direction binning is done by binning fewer pixels together. For the situation to remain the same, sampled values of successive pixels can be summed within the FPGA device. Thus, x4 binning may be changed e.g. to the form x2+x2 or, in the worst case, to the form x1+x1+x1+x1. In this situation, the value of the 16-bit pixel approaches the value 0xFFD when four 14-bit values are summed together. However, the AGC device can take care of all this independently. In this summing situation, an amount of dark current offset corresponding to the number of summing operations can be subtracted from the signal.  
         [0105]     It is obvious to a person skilled in the art that, with the development of technology, the basic concept of the invention can be implemented in many different ways. Thus, the invention and its preferred embodiments are not limited to the examples described above but may vary within the scope of the claims. Within the framework of the inventive concept, the sensitivity can be adjusted in other ways as well.