now , description is given about a first embodiment where an imaging apparatus according to the present invention is applied to a digital still camera . schematic configuration of the present embodiment is described with reference to fig1 . a digital still camera 1 comprises an imaging unit 11 , for example , a ccd device , for capturing an image as a signal through photoelectric conversion , an a / d converter 12 for a / d converting the image signal from the imaging unit 11 , an operating unit 13 , for example cpu , for processing various operations on the a / d converted signals , for example , operations in the exposure adjusting step or the like , a memory 14 for memorizing and storing various parameters of imaged image signals and operational processing , and an imaging unit driving circuit 16 , for example a ccd driving circuit , connected to the operating unit 13 for driving and controlling the imaging unit 11 . the image signal taken in the memory 14 is displayed on a display 15 , for example , a liquid crystal display , connected to the operating unit 13 and incorporated in the digital still camera 1 , or an external display not shown , for example , a crt or the like , connected through an image signal interface 42 . the digital still camera 1 further comprises a light emitting mechanism 22 externally connected to or incorporated in the camera , a light emitting mechanism driving circuit 21 for driving , for example , a stroboscope , a diaphragm mechanism 24 for movably setting a diaphragm , a diaphragm mechanism driving circuit 23 for driving the diaphragm mechanism 24 , an automatic focusing mechanism ( hereinafter referred to as af mechanism ) 26 , and an af mechanism driving circuit 25 for driving the af mechanism 26 . these driving circuits are respectively connected to the operating unit 13 to be controlled thereby . furthermore , the digital still camera 1 comprises a photographing instructing unit 31 for inputting a photographing instructing manipulation , for example , a release button , a parameter setting unit 32 for setting / modifying various parameters relative to operations in the operating unit 13 , a photographing mode setting unit 33 stored in the memory 14 for selectively operating operational processing patterns set in accordance with photographing circumstances , and a control signal interface 41 for exchanging various parameters with an external controller of the operating unit or the outside . now , photographing procedure of an image in the present embodiment is described with reference to fig2 . firstly , photographing modes are set at the photographing mode setting unit 33 ( photographing mode setting step s 11 ). the photographing modes include , for example , a landscape picture mode , a personal picture mode , a night view mode , and the like , and in correspondence with these respective modes , various parameters to be used in an operational processing are respectively stored in the memory 14 . by this setting , various parameters corresponding to the photographing mode being set can be called by the operating unit 13 . then , when a photographing preparation instruction is issued ( for example , a release button is half - pressed ) at the photographing instructing unit 31 ( photographing preparation instructing step s 12 ), focusing is performed by the af mechanism 26 ( focusing step s 13 ). then , when an photographing instruction is issued ( for example , the release button is fully pressed ) at the photographing instructing unit 31 ( photographing instructing step s 14 ), firstly preliminary photographing is performed , and based on the imaged screen taken by the preliminary photographing , exposure adjustment is performed ( exposure adjusting step s 15 ), followed by main photographing of an image ( image photographing step s 16 ). now , procedure of the exposure adjusting step s 15 in the present embodiment is described with reference to fig3 . it should be noted that an imaged screen in the description of the present step indicates an imaged screen taken by the preliminary photographing . firstly , the luminance e of a base region predetermined in an imaged screen ( for example , the average luminance of an imaged screen as a whole ) is calculated ( base region luminance calculating step s 21 ). fig4 shows an example of partitioned blocks of a base region . in this step , a base region 50 is partitioned into a plurality of regions ( for example , blocks 51 of crosswise 12 , longitudinal 8 (= 96 )), and the block luminance of each blocks 51 , for example , the average luminance l ( i , j ) ( i = 1 , 2 , . . . , 12 , j = 1 , 2 , . . . , 8 ) of pixels in each blocks is calculated ( block luminance calculating step s 22 ). then , the logarithm - transformed and normalized block luminance l ′ ( i , j ), which is the block luminance l ( i , j ) normalized and transformed into a logarithm is calculated ( step of normalizing and transforming into logarithm of the block luminance : step s 23 ). here , as shown in the following equation , the luminance is normalized so that the previously calculated base region luminance e corresponds to the standardized luminance ( for example , 18 % reflectance luminance x18 ), and transformed into a logarithm so as to have 2 as the base . with the block luminance being normalized or transformed into logarithm in this way , imaged screens of any luminance distribution can be processed at the unified luminance level , and thus processing accuracy in exposure adjustment can be improved . unneeded image regions except for the main subject photographed are then estimated based on the luminance , and the regions are excluded ( unneeded region excluding step s 24 ). in this step , an unneeded image region of the high luminance or the low luminance such as a light source , for example , the sun , or a locally dark portion such as a dark suit , or the like , is estimated , and excluded from an object to be calculated of an modifying index to be used as a base of calculating an exposure adjusting index , namely a remaining region . the remaining region is discriminated by setting a remaining region index fl . the base region 50 is first given fl = 1 , and when discriminating a region to be excluded , its remaining region index fl is replaced with fl = 0 on demand . when estimating an unneeded region , the luminance is weighted depending on positions in a screen , so that an image element which is highly likely to be the main subject photographed is rarely excluded . this step is further described in detail . an unneeded region with the high luminance is excluded by applying the remaining region index fl = 0 to a block where a value obtained by multiplying the luminance with the position dependent weighting index wpu which is low at the center of a screen and increases toward a periphery of the screen is more than a predetermined threshold tu . on the other hand , an unneeded region with the low luminance is excluded by applying the remaining region index fl = 0 to a block where a value obtained by multiplying the luminance with the position dependent weighting index wpd which is high at the center of a screen and decreases toward a periphery of the screen is less than a predetermined threshold td . in other words , estimation of an unneeded region in this step is performed by excluding a region which satisfies a predetermined condition based on the luminance . by estimating , in this way , a region of an image which is not the main subject photographed depending on the luminance to exclude that region from an object to be calculated of the exposure adjusting index , accuracy in exposure adjustment relative to the main subject photographed can be improved . further , by weighting at the time depending on positions , an image other than the main subject photographed can be more accurately estimated and excluded . the modifying index based on the luminance of a remaining region is then calculated ( modifying index calculating step s 25 ). firstly , the following steps are bifurcated by discriminating the appropriate procedure to calculate the modifying index , based on a ratio of a region still remaining after exclusion of the unneeded regions relative to the predetermined region in an imaged screen ( modifying index calculating procedure discriminating step s 26 ). when the ratio is large , the luminance of the remaining region is calculated as the modifying index ( remaining region luminance calculating step s 27 ). more particularly , when the number of blocks in the remaining region at the time zb ( namely , the number of blocks of which remaining region indices are other than 0 ) is larger than the threshold tb , the modifying index m is calculated as a weighted average ( remaining region luminance ) ma which is , as indicated by an equation shown below , the logarithm - transformed and normalized luminance l ′ of the remaining region weighted depending on positions and weighted depending on the brightness in the screen . it should be noted that the threshold tb is set , for example , at tb = 31 for the number of blocks of the base region (= 96 ). here , k &# 39 ; s (= 1 , 2 , . . . , zb ) are numbers allocated to each block having a remaining region index fl other than 0 , wp &# 39 ; s are position dependent weighting coefficients , and wl &# 39 ; s are brightness dependent weighting coefficients . position dependent weighting coefficients wp are established such that the value at the center of a screen is the maximum and the values of other points are established to become smaller radially toward the periphery . fig5 shows an example of position dependent weighting coefficients wp established for each partitioned block 51 of the base region 50 . respective numerals shown in frames of the blocks 51 represent the position dependent weighting coefficients wp of the respective blocks . the main subject photographed is likely to be near the center of a screen , and therefore by more heavily weighting the vicinity of the center of the screen , accuracy of exposure adjustment relative to the main subject photographed can be improved . fig6 shows an example of brightness dependent weighting coefficients wl established depending on the luminance . in the example , it is established so that , in a region where the luminance l ′ is lower than a first threshold t 11 , a coefficient wl is higher with lowering luminance l ′, in a region where the luminance l ′ is higher than a second threshold t 12 , a coefficient wl is higher with increasing luminance l ′, and when the luminance is between the first threshold t 11 and the second threshold t 12 , a coefficient wl is 1 , and the coefficients wl are continuous within the ranges . an imaging unit 11 of a ccd device or the like generally has a limited range of luminance for receiving the light , and when the luminance of an imaged image exceeds this range , the luminance is saturated and recognized as lower than it actually is . accordingly , by setting a threshold depending on a light receiving range of an imaging unit in this way , and by correcting the luminance within the high luminance range and the low luminance range , it is possible to obtain a luminance distribution nearer to the actual state , and thus accuracy in exposure adjustment relative to the main subject photographed can be further improved . in contrast , when a ratio of the remaining region relative to the predetermined region in an imaged screen is small , the modified base region luminance is calculated , as a modifying index , by heavily weighting the remaining region based on the luminance of the base region ( modified base region luminance calculating step s 28 ). more particularly , the modifying index m is calculated as a weighted average ( modified base region luminance mb ), which is obtained , as indicated by an equation shown below , by weighting depending on positions and by weighting depending on the brightness in the base region , and by heavily weighting a region still remaining at that time . the equation is : mb = ƒ °( l ′ ( i , j )× wp ( i , j )× wl ( i , j )× wm ( i , j )/ ƒ °( wp ( i , j )× wl ( i , j )× wm ( i , j )) here , wp &# 39 ; s are position dependent weighting coefficients , and wl &# 39 ; s are brightness dependent weighting coefficients , and coefficients , for example , similar to those described in the previous step s 27 are used . further , wm is also a weighting coefficient based on the remaining region index fl . the weighting coefficient wm based on the remaining region index fl is established , for example , at 2 in blocks where the remaining region index fl is other than 0 , and at 1 in blocks where the remaining region index fl is 0 . when a ratio of a remaining region relative to the base region is small , it is more likely that a portion other than the remaining region is also photographed as the main subject photographed . accordingly , in such a case , the modifying index to be used as the base of exposure adjustment is calculated not only from the luminance of the remaining region but also based on the luminance of the whole of the base region after the remaining region is weighted , and thus the exposure adjustment relative to the main subject photographed can be more exactly performed . now , an exposure adjusting index to be used as the base for the exposure adjustment is calculated ( exposure adjusting index calculating step s 29 ). the exposure adjusting index a is calculated based on the base region luminance e corresponding to a ratio of the initial region used as the base when calculating the modifying index m relative to the base region and the modifying index m . more particularly , the exposure adjusting index a is calculated by the following equations : here , ƒö is a weighting coefficient corresponding to a ratio of the initial region used as the base when calculating the modifying index m relative to the base region , and it is established so that , for example as shown in fig7 , when the number of blocks zb in the remaining region in the unneeded region excluding step s 24 is 0 , the coefficient ƒö is 0 , when the number zb is more than the threshold tz , the coefficient ƒö is 1 , when the number zb is between 0 and the threshold tz , the coefficient ƒö linearly varies between 0 and 1 , and values of the coefficient ƒö are continuous within these ranges . it should be noted here that a threshold tz is established , for example , at tz = 75 relative to the number of blocks in the base region (= 96 ). further , in order to calculate the exposure adjusting index a here as a weighted average , a value e ′ obtained by transforming the base region luminance e into a logarithm , and a value m ′ obtained by releasing the modifying index m from the above - described normalization are used . as understood from the equations , when the number of blocks zb in the remaining region is larger , a ratio of the modifying index ( m ′) in the exposure adjusting index a is larger , and when the number of blocks zb in the remaining region is larger than the threshold tz , the modifying index ( m ′) per se becomes the exposure adjusting index a . when a ratio of the initial region used as the base for calculating the modifying index relative to the base region is small , it is more likely that a portion excepting the initial region used as the base for calculating the modifying index is also photographed as the main subject photographed . accordingly , by setting so that weight of the modifying index m in the exposure adjusting index a is increased , namely contribution of the modifying index m in the exposure adjustment is raised , when a ratio of the initial region used as the base for calculating the modifying index m relative to the base region is higher , accuracy in exposure adjustment relative to the main subject photographed can be improved . exposure is controlled based on the exposure adjusting index a ( exposure control step s 30 ). exposure control in this step is performed relative to the diaphragm driving circuit 23 , the imaging unit driving circuit 16 , the light emitting mechanism driving circuit 21 , or the like . more particularly , when a exposure adjusting index a is on a lower side , namely in the case of underexposure , mechanisms are controlled depending on the exposure adjusting index a , so as to have a higher diaphragm aperture , to elongate an imaging period or a light receiving period at an imaging unit driving circuit , or to activate a light emitting mechanism to emit light . in contrast , when the exposure adjusting index a is on a higher side , the mechanisms are controlled in the opposite way . these mechanisms can also be selectively controlled depending on setting of a photographing mode or other various parameters , or the like . a second embodiment where the present invention is applied to a digital still camera will now be described . in a procedure of an exposure adjusting step , the present embodiment is provided with a second excluding step for an unneeded region after the excluding step for the unneeded region in the first embodiment . further , in the present embodiment , the schematic configuration of the apparatus and processing procedure except for an exposure adjusting step are the same as the first embodiment described above . here , an exposure adjusting step s 15 is exclusively described . fig8 shows a flow chart of the exposure adjusting step s 15 of the present embodiment . prior to a second unneeded region excluding step s 42 , a step s 41 for vertically detecting a screen is previously performed based on the luminance distribution of an imaged screen . in the step s 41 , an area predetermined in the imaged screen is partitioned into a plurality of regions , and a direction of a screen is determined based on an arrangement of regions having larger luminance . an example is described with reference to fig9 . fig9 are examples of direction detecting maps to be used as bases in direction detecting of screens . a base region predetermined in an imaged screen is partitioned into large blocks of 2 longitudinal × 3 crosswise , an arrangement of a large block having the largest luminance and a large block having the second largest luminance is recognized , arrangements of these two large blocks ( 61 , and 62 ) in a direction detecting map 60 called from the memory 14 are compared , and the direction of the screen is thus determined . here , when arrangements of large blocks in imaged screens fall on fig9 a , 9b , or 9 c respectively , a direction indicated by an arrow a , b , or c in the figs . is respectively determined as the upper direction of the respective imaged screens . then , when a direction can be detected in the step 41 , a region not being the main subject photographed is further estimated based on the luminance and the direction of the imaged screen and the step is bifurcated into a second unneeded region excluding step s 42 to be excluded from the remaining region , and when a direction cannot be detected , the step is bifurcated into a modifying index calculating step s 25 . in the second excluding step s 42 , the sky or a shadow , for example , can be excluded from a remaining region . in other words , a region of high luminance at an upper portion of an imaged screen is detected as the sky , while a region of low luminance at a lower portion of an imaged screen is detected as a shadow , and these are excluded . more particularly , a block where a value obtained by multiplying the luminance with a weighting coefficient wp 1 which increases from a low direction toward an upper direction in an imaged screen is larger than the threshold tsk , is recognized as a block of the sky , while a block where the value is smaller than the threshold is recognized as a block of a shadow . since the sky or a shadow can be excluded in this way based on a direction and the luminance detected from a screen , exposure adjustment relative to the main subject photographed can be performed with high accuracy . it should be noted that this step s 42 is set such that , for example , by setting the above - described thresholds tsk and tsd , a region with the luminance lower than that of the excluded region in the above - described excluding step s 24 is made to be excluded when excluding a brighter region , and a region with luminance higher than that of the excluded region in the above - described excluding step s 24 is made to be excluded when excluding a darker region . since an unneeded region is excluded paying consideration to a vertical direction of an imaged screen in the step s 42 , a region where luminance level is nearer to the luminance of the main subject photographed can be excluded with high accuracy , and accuracy in the exposure adjustment can be improved . now , a third embodiment in which the present invention is applied to a digital still camera is described . in this embodiment , a contour of an image of an imaged screen is detected , and based on the luminance detected of the contour , exposure adjustment is performed . it should be noted that , in this embodiment , the schematic configuration of an apparatus and steps except for an exposure adjusting step are the same as the first embodiment described above . therefore , the exposure adjusting step is exclusively described hereinafter . fig1 is a flow chart of the exposure adjusting step s 15 in the present embodiment . the exposure adjusting step s 15 is , following a base region luminance calculating step s 21 , a block luminance calculating step s 22 , and a step for normalizing and transforming into a logarithm of the block luminance s 23 , similar to the first embodiment , provided with a step s 43 for detecting a contour of an image of an imaged screen . in this step s 43 , a region of a contour , for example , blocks of a contour , is recognized based on the luminance . more particularly , as indicated by the following equation , blocks of which the absolute value of a rate of change of the luminance in the blocks ( for example , difference in the luminance between a specific block and a block neighboring the specific block ) is larger than the contour threshold th 1 are recognized as blocks of the contour . the equation is ; here , db ( i , j ) and ds ( i , j ) ( i = 1 , 2 , . . . , 12 , j = 1 , 2 , . . . , 8 ) are respectively the maximum of the luminance increase rate and the maximum of the luminance decrease rate in the respective blocks i , and these are respectively ; max al = max ( l ′ ( i + 1 , j + 1 ), l ′ ( i + 1 , j ), l ′ ( i + 1 , j − 1 ), l ′ ( i , j + 1 ), l ′ ( i , j − 1 ), l ′ ( i − 1 , j + 1 ), l ′ ( i − 1 , j ), l ′ ( i − 1 , j − 1 )) min al = min ( l ′ ( i + 1 , j + 1 ), l ′ ( i + 1 , j ), l ′ ( i + 1 , j − 1 ), l ′ ( i , j + 1 ), l ′ ( i , j − 1 ), l ′ ( i − 1 , j + 1 ), l ′ ( i − 1 , j ), l ′ ( i − 1 , j − 1 )) remaining region indices fl are determined depending on values of the db and the ds . the remaining region indices fl are established for respective blocks , at fl = 1 for contour blocks where db & gt ; ds , at fl = 2 for contour blocks where db & lt ; ds , and at fl = 0 for other blocks . in other words , here , the remaining region where an unneeded image is estimated and excluded from the base region is recognizably established as a region having the remaining region index fl at other than 0 , and a contour appearing at a border of a bright image region having the high luminance and a dark image region having the low luminance is established so that a contour in a bright region ( the remaining region index fl = 2 ) and a contour in a dark region ( the remaining region index fl = 1 ) are recognizable by the remaining region index . fig1 schematically show an example of detecting a contour . in a base region 70 of an imaged screen shown in fig1 a , there are blocks 71 which are assumed to be an image region of the main subject photographed and blocks 72 which are assumed to be the sky . in fig1 b , a contour is detected relative to the imaged screen . in fig1 b , numerals in frames of blocks are the remaining region indices fl . however , regions where the remaining region index fl is 0 are blank . in this step , a contour region of an image is used as a remaining region . as this use enables reduction of the influence on exposure adjustment of the luminance distribution unrelated with the main subject photographed in an unneeded region by limiting the unneeded region other than the main subject photographed exclusively to a contour , accuracy in exposure adjustment relative to the main subject photographed can be improved . as this also enables a reduction of the area or the number of regions subjected to calculation of the exposure adjusting index , exposure adjustment can be rapidly performed . an image region other than the main subject photographed is estimated and excluded from the remaining region based on the luminance ( unneeded region excluding step s 24 ), a screen is then vertically detected based on the luminance distribution of an imaged screen , and based on a detected result of the direction of a screen , the step is bifurcated ( screen vertical direction detecting step s 41 ). except for having the remaining region as a region for a contour , these steps are similar to the first or the second embodiment , and therefore achieve similar operation and advantage . further , in the second excluding step s 42 , similar to the second embodiment , the sky or a shadow , for example , can be excluded from the remaining region . firstly , a block located at the uppermost based on the direction detected in the previous step and the luminance thereof being higher than the threshold tsk is recognized as a block of the sky . further , all blocks in the same column as the block , and located further up than the uppermost block having the remaining region index at 1 , and having the remaining region index at 2 ( namely a contour on a bright side ) are recognized as blocks of the sky , and the remaining region indices of all these blocks are replaced by 0 . also , in a case where the above - described column has no block having the remaining region index fl at 1 , blocks having the remaining region index fl at 2 are recognized as blocks of the sky , and the remaining region indices fl of all these blocks are replaced by 0 . for example , if this step is implemented in the example described with fig1 b where a contour is detected , it comes out as shown in fig1 c ( a direction indicated by an arrow a is the upper direction in the screen screen ). numerals and blanks in fig1 c represent the remaining region indices fl similarly with fig1 b . on the other hand , a block located at the lowest point based on a direction detected in the previous step and the luminance being lower than the threshold tsd is recognized as a block of a shadow . further , all blocks in the same column as the block , and located further down than the lowest block having the remaining region index fl at 2 , and having the remaining region index fl at 1 ( namely , a contour on a dark side ) are recognized as blocks of the shadow , and the remaining region indices fl of all these blocks are replaced by 0 . further , in a case where the above - described column also has no block with the remaining region index fl at 2 , blocks having the remaining region index fl at 1 are recognized as blocks of the sky , and the remaining region indices of these blocks are all replaced by 0 . by separating and recognizing a bright region from a dark region of a contour in this way , the sky or the shadow can be easily excluded with high accuracy , and thus accuracy in exposure adjustment relative to the main subject photographed can be improved . in addition , if the second excluding step s 42 is implemented in a state where a light source , for example , the sun , still remains , it is conceivable that a region of a contour of the light source may be mistakenly recognized as a region of a contour of the sky , and , as in the present embodiment , by previously excluding a light source , a dark region , or the like by implementing the unneeded region excluding step s 24 not depending on a vertical direction of a screen prior to the present step , erroneous recognition of an excluding region in the step s 42 can be prevented , thus realizing exposure adjustment with higher accuracy . steps to follow the second unneeded region excluding step s 42 ( s 25 , s 26 , s 27 , s 28 , s 29 , and s 30 ) are similar to the above - described first or second embodiment , and operation and advantage of these steps are also similar to the first or the second embodiment . it should be noted that in the present embodiment the weighting coefficient ƒö in the exposure adjusting index calculating step s 29 may be established in correspondence with a ratio of a region of a contour recognized in the contour detecting step s 43 relative to the base region ( for example , a ratio of the number of blocks of contour detected in the contour detecting step relative to the number of blocks in the base region ). in this case , in fig7 , the abscissa is changed from the number of blocks in the remaining region zb to the number of blocks of the contour ze , and the threshold tz is established , for example , at tz = 21 relative to the number of blocks in the base region (= 96 ). it should be noted that the present invention is also applicable to a moving image photographing apparatus . in this case , exposure adjustment according to the present invention is implemented as required while photographing the moving image . in addition , the sequence of implementing the respective steps can be altered . for example , the first and the second excluding steps may be performed following the direction detecting step relative to an imaged screen . further , although various calculations for the exposure adjustment are performed relative to the partitioned blocks of the base region , the calculations may be performed relative to pixels . further , respective thresholds may be established for each photographing mode . in this way , exposure adjustment can be optimized for a variety of photographing situations . furthermore , a posture detector 43 ( fig1 ) for detecting a relative posture relative to the vertical direction of an imaging apparatus may be provided , so that a screen can also be vertically detected . further , prior to the exposure adjusting step , white balance gain adjustment may be performed by a known method based on the luminance of an image preliminarily photographed by an imaging unit 11 . the white balance gain adjustment is to adjust respective gains of the luminance of the primaries in correspondence with , for example , photographing modes , and therefore the luminance distribution in a form nearer to the luminance distribution of an actual image can be made reproducible , and thus accuracy in exposure adjustment can be further improved . it should be noted that , when an imaged screen is vertically detected based on a detected result of a posture by the above - described posture detector or the luminance distribution in an imaged screen , position dependent weighting coefficients wp of respective steps may be established so as to have a maximum or minimum value at slightly below the center . fig1 shows an example of such a position dependent weighting coefficients wp ( direction indicated by an arrow a is the upper direction of the screen ). values of the position dependent weighting coefficients wp are shown in respective frames of blocks 51 . the main subject photographed is generally likely to exist slightly below the center of a screen , and this can further improve accuracy of exposure adjustment for the main subject photographed . it should be noted that the unneeded region excluding step s 24 based on the luminance may also not be limited to the procedures described above . for example , when the luminance is higher than the preset threshold tsk , and a region belonging to a contour in the bright side has the periphery thereof surrounded by a region of a contour in the dark side , a region of the contours can be recognized and excluded as a light source . as described heretofore , according to the present invention , by performing exposure adjustment based on the luminance in a region which is remaining by estimating and excluding images other than the main subject photographed in an imaged screen , excellent advantages such as improvement in accuracy in exposure adjustment for to the main subject photographed , shortening of the time required in exposure adjustment , and the like can be achieved . the invention has been described in detail with particular reference to certain preferred embodiments thereof , but it will be understood that variations and modifications can be effected within the spirit and scope of the invention . s 23 normalizing and transforming into logarithm of block luminance s 23 normalizing and transforming into logarithm of block luminance s 23 normalizing and transforming into logarithm of block luminance