the present invention will hereinafter be described in detail with respect to an embodiment thereof shown in the drawings . fig1 is a schematic view of an x - ray digital image photographing apparatus , and fig2 is a plan view of the x - ray photographing apparatus . the x - ray digital image photographing apparatus is comprised of an x - ray generating portion 1 a stand 2 , an x - ray photographing portion 3 , a control portion 4 for controlling the x - ray photographing portion 3 , a cable 5 for connecting the x - ray photographing portion 3 and the control portion 4 together , and a monitor 6 for displaying a signal processed in the control portion 4 . also , the x - ray photographing portion 3 is vertically movable through the movable portion 2 a of the stand 2 , and can freely change its height in accordance with the position of an object by this vertical movement , and is designed to be capable of photographing the predetermined position of the object located between the x - ray photographing portion 3 and the x - ray generating portion 1 . an x - ray image receiving portion 14 comprising a radiation image detector 12 and a reading circuit 13 for reading out a signal from this radiation image detector 12 , and a grid unit 15 including a grid for removing the scattered rays of the object are contained in the housing 11 of the x - ray photographing portion 3 . also , a handle 15 a is provided on a side of the grid unit 15 . further , an openable - closable cover 16 is mounted on a side of the x - ray photographing portion 3 through a hinge 17 . the grid unit 15 and the x - ray image receiving portion 14 are disposed in parallel in the housing 11 of the x - ray photographing portion 3 , and the grid unit 15 can be taken out of the x - ray photographing portion 3 by opening the cover 16 and pulling the handle 15 a . the control portion 4 is comprised of an image processing portion 18 for effecting a filtering process such as a reduction in the noise or edge emphasis of an image digital signal supplied from a memory circuit 13 , and a power source portion 19 for supplying a power source to the x - ray image receiving portion 14 and the image processing portion 18 . the connection between the x - ray photographing portion 3 and the control portion 4 is made by the cable 5 comprising a signal line and a power source line , and this cable 5 is covered and protected by a flexible tube 20 . the flexible tube 20 is of a flexible material and therefore can follow the vertical movement of the x - ray photographing portion 3 . in an x - ray photographing apparatus system of such a construction , the x - ray photographing portion 3 is moved to a photographing position for a patient , and x - rays are applied from the x - ray generating portion 1 and photographing is effected . the image information of the object photographed by the x - ray photographing portion 3 is transmitted as a digital signal to the image processing portion 18 by the cable 5 , and various image processings are effected in conformity with the presence or absence of the use and kind of the grid . fig3 is a front view of a grid unit 15 , and fig4 is a cross - sectional view taken along the line 4 — 4 of fig3 . the grid unit 15 is comprised of a handle 15 a , a grid body 15 b and a grid holding portion 21 , the grid body 15 b mounted in the x - ray photographing portion 3 is fixed to the frame - like grid holding portion 21 through a fixing member 22 , and the grid holding portion 21 has its four sides bent at right angles to improve the strength thereof . of these four bent sides , convex projections 23 , 24 and 25 are equidistantly formed on the end portion of the side of the surface opposed to the handle 15 a . also , a switch mounting plate 26 is provided in the x - ray photographing portion 3 , and microswitches 27 , 28 and 29 are provided on this switch mounting plate 26 so as to be opposed to the projections 23 , 24 and 25 , respectively , and a grid discriminating circuit 31 is connected to the microswitches 27 , 28 and 29 through a lead wire 30 . the microswitch 27 is disposed so as to be changed from its off state to its on state by the projection 23 provided on the grid holding portion 21 when the grid unit 15 is mounted on the x - ray photographing portion 3 . likewise , the microswitches 28 and 29 are adapted to be changed from their off state to their on state by the projections 24 and 25 , respectively . the on and off states of the microswitches 27 , 28 and 29 are transmitted to the grid discriminating circuit 31 by the lead wire 30 , and the presence or absence of the grid body 15 b and the kind of the grid body 15 b are discriminated . for example , it is conceivable to set so that if the microswitches 27 , 28 and 29 are all in their on state , it is discriminated that a grid body 15 b of a first characteristic a is mounted , and if only the microswitch 27 is in its on state , it is discriminated that a grid body 15 b of a second characteristic b is mounted , and if all of the microswitches 27 , 28 and 29 are in their off state , it is discriminated that the grid body 15 b itself is not mounted . such setting is not restricted to this example , but various kinds of setting are possible depending on the combinations of the on and off states of the microswitches 27 , 28 and 29 . the detecting means are nor restricted to the microswitches 27 , 28 and 29 , but may also be lead switches utilizing a magnetic force or photoswitches utilizing a light , and the number of the detecting means can be selected as required . further , while in the above - described embodiment , description has been made of a case where the stationary grid body 15 b is used , such a detecting method is applicable not only to a photographing apparatus using the stationary grid 15 b , but also to a photographing apparatus which effects photographing with the grid body 15 b moved relative to the x - ray image receiving portion 14 during photographing . for example , driving means such as a motor for moving the grid body 15 b may be discretely provided in the x - ray photographing portion 3 , and the grid body 15 b is made movable relative to the grid holding portion 21 , and during photographing , only the grid body 15 b can be moved at a predetermined speed by the driving means . in this case , as in the above - described embodiment , the detected means provided on the grid holding portion 21 can be intactly used , and the presence or absence of the grid or the characteristic of the grid body 15 b can be discriminated independently of the movement of the grid body 15 b . such detecting means is not directly provided on the grid body 15 b , but is provided on the common grid holding portion 21 to thereby obtain the following advantages . irrespective of the grid thickness depending on the grid ratio , the grid inserting portion in the photographing apparatus can be simplified into the same shape , and in the case of photographing in which the grid is moved , the on and off of the microswitches are not repeated each time the grid is moved and therefore , the durability of the apparatus is improved . also , the grid can be protected when the grid is detached from the photographing apparatus . further , if design is made such that the presence of the grid body 15 b in the x - ray photographing portion 3 is detected and the grid driving means is operated only in the case of photographing in which the grid is moved , the grid driving means can be prevented from being driven by mistake when the grid body 15 b is not mounted in the x - ray photographing portion 3 and when photographing is effected with the grid fixed . also , it will be unnecessary to provide new grid detecting means if design is made such that the grid detecting microswitches 27 , 28 and 29 as described above are not used , but a parameter amount fluctuated by a load applied to the motor when only the grid driving means , e . g . the motor is operated before photographing , or during photographing is detected to thereby discriminate the presence or absence or the weight of the grid body 15 b . specifically , for example , the current value flowing to the motor when the motor is operated is defined as a parameter amount , and the current value when this current value has assumed a balanced state and a preset discrimination current value can be compared with each other to thereby discriminate the presence or absence of the grid body 15 b and the characteristic of the grid body 15 b which depends on the weight of the grid body 15 b . chiefly the amount of lead in the grid body 15 b , i . e ., the grid density , is conceivable as the characteristic of the grid body 15 b which depends on the weight of the grid body 15 b . fig5 is a graph showing the current value flowing to the motor to the lapse time . when the grid body 15 b is not present in the x - ray photographing , portion 3 , the load torque applied to the motor is minute and therefore , the current value from the start of the rotation of the motor changes as indicated by a curve c , and the current balance value converges to ic after a current balance reaching time t 1 . likewise , the current values when grids a and b are mounted become as indicated by curves a and b , respectively , and after current balance reaching times t 2 and t 3 , the current values become ia and ib , respectively . the grid b is higher in grid density and greater in weight than the grid a and therefore , the load torque thereof becomes great , and the current values become ib & gt ; ia & gt ; ic . also , the increase rate of the current value during the rising of the rotation of the motor is great in the order of curves b , a and c , and the current balance reaching time becomes long in the order of t 3 & gt ; t 2 & gt ; t 1 . here , when discrimination current values ica and iab are preset so as to be ib & gt ; iab & gt ; ia & gt ; ic , it becomes known that if the current value i after the current balance reaching time t 3 is ica & gt ; i , no grid is mounted , and if tab & gt ; i & gt ; ica and i & gt ; iab , the grids a and b are mounted respectively , and the discrimination of the presence or absence and the kind of the grid becomes possible . in the present embodiment , the parameter amount fluctuated by the load applied to the grid driving means is defined as the current value i in the balanced state , but may be defined as the increase rate of the current value or the required time until the balanced state is reached , and use may be made of the number of rotations of the motor inversely proportional to the load torque to obtain a similar effect . fig6 shows a block circuit diagram of the image processing portion 18 , which can select appropriate image processing by the utilization of the information of the presence or absence and the kind of the grid body 15 b obtained by the method as described above . the image processing portion 18 is comprised of a preliminary treatment section 41 , a qa treatment section 42 , an image memory section 43 , an image process parameter memory section 44 , an applicable grid table memory section 45 and a network interface 46 . gain correction , offset treatment , log conversion and grid erasing process , not shown , are carried out in the preliminary treatment section 41 . in the photographing in a fixed grid system , gain images are all photographed without the use of a grid . that is , in the fixed grid system , irrespectively of the presence or absence and the kind of the grid , the grid is not used but a photographed gain image w 1 is used . also , in the photographing in a movable grid system , gain images w 2 - w 4 collected by the grid used in the photographing are used . one of the reasons for this is that energy characteristic differs from grid to grid and therefore gain images similar in the quality of lines to each other are used . again in the case of the movable grid system , when no grid is mounted , a gain image using no grid is used for correction . however , there is no possibility of shading occurring even if the gain image is not changed over by a grid and therefore , the quality of image will not be greatly affected even if the gain image is not changed over . such gain images w 1 - w 4 are preserved in the image memory section 43 , and by the control of the preliminary treatment section 41 , an image process parameter table shown in table 1 below which is preserved in the image process parameter memory section 44 is referred to from the result of the detection by the grid detecting means , and a corresponding gain image is down - loaded from the image memory section 43 . likewise , the parameter of the grid erasing process is controlled by the presence or absence of the grid and the kind of the grid . the grid erasing process is carried out only in the case of the fixed grid system , and is not used in the case of the movable grid system . the advantage of the photographing by the fixed grid system is that high - speed photographing is possible , while on the other hand , the fringes of the grid are actualized in the image , and this is disliked as hindering diagnosis by some doctors . so , the erasing process of erasing the grid present in the image by image processing is carried out . if the sampling frequency fs of a sensor system is determined , in which frequency the fringes are created when which grid is used can be found by calculation . when the frequency of the grid is defined as fg , if fs & gt ; fg , fringes are formed in the frequency fg and therefore , they are removed by filter processing . as regards the frequency of the band cut filter at this time , the kind of the grid is detected , whereby the cut frequency fa in the image process parameter table preserved in the image process parameter memory section 44 is determined . also , if fs & lt ; fg , the fringes of moire ′ are created in fs −( fg − fs )= 2fs − fg . as in this case , the frequency of this 2fs − fg is referred to from the image process parameter table by the band cut filter and a filter is constituted . as regards also the frequency process which is one of qa processes , the parameter is adjusted by the grid . here , the purposes are that in the grid processing , a frequency area weakened as a side effect is restored to its original state and that the grid which is not completely erased is not emphasized , but other frequency bands effective for diagnosis are emphasized . these filter parameters are also determined by searching for the image process parameter table on the basis of the grid information from the detecting means . finally , harmony processing is carried out , but generally in photographing which does not use a grid , although somewhat , the contrast of the entire image is reduced by scattered rays . in order to correct this , it is desirable to increase and convert the contrast in the harmony processing . the process in which the parameter is changed depending on the presence or absence and the kind of the grid has been disclosed regarding the processing shown in table 1 , whereas the processing related to the grid is not restricted thereto , but also in image compression regarding the post - processing of a diagnosed image , it is conceivable for the parameter to be adjusted so as not to emphasized the grid . it is nor restricted to an adjusting method for the processed parameter utilizing grid information , but is determined by the desire of a doctor or an engineer . in the foregoing , description has been made of the fact that the image processing parameter is adjusted by the information regarding the presence or absence or the kind of the grid , but changing the grid depending on the photographing method means that an appropriate grid is determined by the photographing method . in the image photographing apparatus of the present embodiment , before the photographing by the application of x - rays , the inputting of the photographing method as to what region is to be photographed with what intention is effected from a hospital information system his or a radiation information systems ris by way of an input portion belonging to the display apparatus 17 or a network interface 46 . for example , suppose a case where if as shown in table 2 below , the region to be photographed is the front of the breast , the use of the grid a is appropriate and if the region to be photographed is a limb , not using the grid is appropriate . in the present embodiment , the kind of an appropriate grid retrieved from the photographing method and the kind of the grid detected by the grid detecting means are compared with each other , and if the selected grid is not appropriate , the display apparatus 17 can be given the function of displaying it . the photographing method shown in table 2 and the corresponding table of the grid are preset and can be preserved in the applicable grid table memory section 45 . while in the above description , it is premised to have the means for detecting the characteristic of the grid , and in fig3 there are shown the construction of the grid unit 15 and a method of discriminating between the presence and absence of the grid in the photographing apparatus and a grid of what characteristic is mounted , the mechanism can also be simplified as a construction having only the means for detecting the presence or absence of the grid . in this case , the determination as to a grid of what characteristic is mounted is effected by the use of discrete means . for example , there is adopted a construction in which the deviation of the present or absent state of the grid detected by grid presence or absence detecting means is monitored and whether the grid has been changed is detected by the presence or absence of a state in which the grid is absent , and when there is the replacement of the grid , a panel for requiring idle exposure for the selection of the kind of the grid is displayed on the display portion 12 . this idle exposure is photographed in a state in which there is no object and moreover , with the grid fixed . this fixed grid idle exposure image is analyzed by an image analyzing portion , not shown , provided discretely from the image processing portion 18 , whereby the determination of the kind of the grid is effected . frequency analysis using fourier conversion can be used as the image analyzing method , and specifically , at the position of spectrum , it is possible to determine the grid ratio by the period of the grid and the size of the spectrum . after grid judgment has been done by the use of such an image analyzing method , the result of the determination is used for the selection of the image processing parameter as previously described . as described above , the x - ray image photographing apparatus according to each of the above - described embodiments can detect the presence or absence , kind , etc . of the grid , and the execution of appropriate photographing or image processing becomes possible , and the grid device can be suitably utilized therefor .
an x - ray image photographing apparatus includes an image obtaining portion for obtaining an x - ray distribution transmitted through an object , a grid detecting system having a construction for obtaining information from a grid side by the action of inserting the grid for decreasing scattered rays into the apparatus , and detecting at least one of the presence or absence of the grid , the kind of the grid and the presence or absence of the replacement of the grid by the use of the construction , an image processing system for image processing and outputting image data collected by the image obtaining portion , and a memory portion preserving therein a plurality of sets of image processing parameters for controlling the image processing system . the image processing system selects the image processing parameters preserved in the memory on the basis of at least the result of the detection by the grid detecting system and executes image processing .