Threshold determination device, threshold determination program, and threshold determination method
The threshold value determination device uses land use and disaster prediction data to automatically set thresholds for binarized images, addressing the challenge of manual adjustment and ensuring accurate separation of areas in difference images.
Patent Information
- Application Number
- JP2023048286
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-04
AI Technical Summary
Existing methods for generating binarized images from difference images struggle to accurately separate difference areas and non-difference areas due to the lack of an appropriate threshold value, which is influenced by observation conditions such as direction, angle, and weather, requiring manual adjustment.
A threshold value determination device that utilizes land use classification data and disaster occurrence prediction data to automatically determine an appropriate threshold by comparing pixel values or statistics with candidate thresholds, calculating appropriateness, and selecting a final threshold based on suitability.
Enables the generation of accurate binarized images by automatically determining an appropriate threshold, ensuring proper separation of difference and non-difference areas.
Smart Images

Figure 2024136966000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a threshold determination device that determines a threshold used when generating a binarized image from a difference image. [Background technology]
[0002] Conventionally, there is a technique for binarizing a difference image (for example, Patent Document 1, paragraph
[0057] ). In general, when comparing a first image with a second image to visualize an area with a difference, a binarized image is generated by the following method. First, a difference image between the first image and the second image is generated. For example, the first image is an image before the disaster occurs, and the second image is an image of the same area after the disaster occurs. The difference image shows the difference before and after the disaster occurs. Then, each pixel value of the difference image is compared with a predetermined threshold value, and pixel values equal to or greater than the threshold value are considered valid, and pixel values less than the threshold value are considered invalid. If the area where pixels with valid pixel values are collected is referred to as a difference area (valid area) and the area where pixels with invalid pixel values are collected is referred to as a non-difference area (invalid area), a binarized image of the difference area and the non-difference area is obtained. If valid pixels are displayed in black and invalid pixels are displayed in white, a binarized image is obtained as a black and white image.
[0003] When trying to obtain a binarized image to visualize the difference, the pixel values are compared with a threshold as described above, but unless an appropriate threshold is set, it is not possible to properly distinguish between differential and non-differential regions, which means that an appropriate binarized image cannot be obtained. However, an appropriate threshold value varies depending on observation conditions such as the observation direction, observation angle, weather and sunlight angle at the time of observation of the first and second images from which the difference image is generated, or the difference calculation method. For this reason, in the past, in order to obtain a binarized image that corresponds to an appropriate threshold, a person would change the threshold and obtain an appropriate binarized image by visual inspection. In other words, in the past, it was difficult to automatically divide the difference region (valid region) and the non-difference region (invalid region) appropriately. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 7150126 Summary of the Invention [Problem to be solved by the invention]
[0005] The present disclosure aims to provide a threshold determination device that determines an appropriate threshold for generating a binary image. [Means for solving the problem]
[0006] The threshold determination device according to the present disclosure comprises: a data acquisition unit that acquires land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generating unit that compares, for each of a plurality of possible thresholds, a pixel value of each pixel of a differential image between a first image of a target area included in the land use classification data before the occurrence of the disaster and a second image of the target area after the occurrence of the disaster, with the candidate thresholds, and generates, from a comparison result, a binary image having, for each of the candidate thresholds, a valid area made up of pixel values that satisfy the candidate thresholds and an invalid area made up of pixel values that do not satisfy the candidate thresholds; an appropriateness calculation unit that calculates an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination unit that determines a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; Equipped with. Effect of the Invention
[0007] The threshold determination device according to the present disclosure includes an appropriateness calculation unit and a threshold determination unit, and therefore can automatically determine an appropriate threshold for generating a binary image, thereby generating an appropriate binary image from a difference image. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing a block configuration of a threshold value determining device 10 according to a first embodiment. [Diagram 2] FIG. 2 is a diagram of the first embodiment, showing an outline of the operation of the threshold determining device 10. [Diagram 3] FIG. 2 is a diagram according to the first embodiment, showing an example of a binarized image. [Figure 4] FIG. 11 is a diagram of the first embodiment showing a difference domain in a flood disaster. [Diagram 5] FIG. 2 is a flowchart showing the operation of the threshold determining device 10 according to the first embodiment. [Figure 6] FIG. 10 is a diagram according to the first embodiment, showing generation of a binarized image in the Type 1 method. [Figure 7] FIG. 11 is a diagram according to the first embodiment, showing generation of a binarized image in the Type 2 method. [Figure 8] This is a diagram of the first embodiment, showing a land cover map and a flood hazard map. [Figure 9] FIG. 11 is a diagram of the first embodiment, showing conditions for calculating a differential correct answer rate. [Figure 10] FIG. 11 is a diagram of the first embodiment, showing conditions for calculating a non-differential correct answer rate. [Figure 11] FIG. 11 is a diagram of the first embodiment, showing a graph of a calculation result of a differential correct answer rate and a calculation result of a non-differential correct answer rate. [Figure 12] FIG. 2 is a diagram in the first embodiment, explaining an interpolation method for determining a definite threshold value Td by a threshold value determining unit 14. [Figure 13] FIG. 11 is a diagram of the first embodiment, and explains a binary search method for determining a definite threshold Td by a threshold determining unit 14. [Figure 14] FIG. 10 is a flowchart showing the operation of the threshold determination device 10 when a binary search method is used in the first embodiment. [Figure 15] FIG. 1 is a diagram showing a hardware configuration of a threshold value determining device 10 according to a first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] In the description of the embodiments and the drawings, the same elements and corresponding elements are given the same reference numerals. Descriptions of elements given the same reference numerals are omitted or simplified as appropriate. In the following embodiments, "unit" may be read as "circuit", "step", "procedure", "process" or "circuitry" as appropriate.
[0010] Embodiment 1 A threshold value determining device 10 according to a first embodiment will be described with reference to FIGS.
[0011] ***Configuration Description*** Fig. 1 shows a block configuration of a threshold determination device 10. The threshold determination device 10 includes a candidate setting unit 11 that sets multiple candidate thresholds, a binary image generation unit 12 that generates a binary image for each candidate threshold, a correct answer rate calculation unit 13 that calculates the correct answer rate of valid areas and invalid areas in the binary image, a threshold determination unit 14 that determines a definitive threshold from the multiple candidate thresholds, and a data storage unit 15 that is a storage unit. The functions of the candidate setting unit 11 and the like will be described later in the explanation of the operation. The correct answer rate calculation unit 13 is an appropriateness calculation unit and a data acquisition unit.
[0012] FIG. 2 is a diagram showing an outline of the operation of the threshold determination device 10. The outline of the operation of the threshold determination device 10 will be described with reference to FIG. 2. The accuracy rate calculation unit 13 acquires land use classification data and disaster occurrence prediction data. The land use classification data is map information in which the state of land use in an area is classified into a plurality of types. The disaster occurrence prediction data is map information indicating the prediction of the occurrence of a disaster in an area indicated by the land use classification data. The land use classification data is, for example, a land cover map 20 described later. The disaster occurrence prediction data is accuracy rate determination auxiliary data described later, and is, for example, a flood hazard map 30 as described later. The land cover map 20 and the flood hazard map 30 are shown in FIG. 8 described later.
[0013] The binary image generating unit 12 calculates a pixel value p of each pixel k in the difference image Gd between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster for each of a plurality of possible thresholds Ti (i=1, 2, 3, 4, 5, 6) of the possible thresholds. k (Type 1, described below), or the pixel value p k The statistic s calculated from m (Type 2 described later) is compared with the possible threshold Ti. From the comparison result, the binary image generating unit 12 generates a binary image G2i made up of valid areas and invalid areas for each possible threshold Ti. The valid region is the region where the pixel value p k Or the statistic s m The land use type is estimated for the region consisting of pixels p that do not satisfy the candidate threshold Ti. k Or the statistic s m Hereinafter, the valid region is also called a differential region, and the invalid region is also called a non-differential region.
[0014] The accuracy rate calculation unit 13 calculates the validity appropriateness indicating whether it is appropriate to validate the valid area for each binarized image G2i by referring to the land use classification data and the disaster occurrence prediction data. Here, the validity appropriateness corresponds to the difference correctness rate ERi described later. The threshold determination unit 14 determines the definite threshold Td from among the multiple candidate thresholds Ti based on the validity appropriateness.
[0015] The accuracy calculation unit 13 calculates an invalidity appropriateness indicating whether it is appropriate to invalidate an invalid area for each binarized image G2i by referring to the land use classification data and the disaster occurrence prediction data. Here, the invalidity appropriateness is a non-differential correct answer rate NRi described later. The threshold determination unit 14 determines a definite threshold Td from among multiple candidate thresholds Ti based on the validity appropriateness and the invalidity appropriateness.
[0016] The threshold determination unit 14 determines the candidate threshold Ti as the definitive threshold Td when the valid appropriateness ERi of the candidate threshold Ti satisfies the valid appropriateness threshold for determining the definitive threshold Td. The threshold determination unit 14 determines the candidate threshold Ti as the definitive threshold Td when the invalid appropriateness NRi of the candidate threshold Ti satisfies the invalid appropriateness threshold for determining the definitive threshold Td. The valid appropriateness threshold and the invalid appropriateness threshold correspond to the accuracy rate threshold described later in FIG. 11.
[0017] Figure 3 shows a binarized image generated by the method for generating a binarized image described in Figure 2. Figure 3 shows a binarized image in which difference regions are represented by 1 (black) and non-difference regions are represented by 0 (white).
[0018] FIG. 4 is a diagram showing the difference region in a flood disaster. FIG. 4 shows binarized images for each threshold. The difference region, which is a flooded area, is shown in black. The effective value changes depending on the threshold. When manually compared with the actual flood situation, the optimum value was a threshold value T of 2.0. The purpose of the threshold determination device 10 is to automatically determine this optimum threshold value.
[0019] ***Explanation of Operation*** 5 is a flowchart showing the operation of the threshold determining device 10. The threshold determining device 10 will be described with reference to FIG.
[0020] <Step S11> In step S11, the candidate setting unit 11 sets a plurality of candidate thresholds to be finally determined as the optimal definite threshold Td. The candidate thresholds are set as Ti (i=1, 2, 3, . . .). In setting the candidate thresholds Ti, the candidate thresholds Ti are generated according to an initial value and a function F that is set in advance. For example, when the initial value is 3, the closing value is 0.5, the step size is 0.5, and the function F is F=-0.5×(i-1)+initial value (i=1, 2, 3, 4, 5, 6), the candidate thresholds Ti (i=1, 2, 3, 4, 5, 6) are as follows. The candidate thresholds are T1=3.0, T2=2.5, T3=2.0, T4=1.5, T5=1.0, and T6=0.5. The initial value, closing value, step size, and function F are acquired by the candidate setting unit 11 from the data storage unit 15.
[0021] After the possible thresholds Ti are set in step S11, the processes from step S12 to step S15 are looped the same number of times as the number of possible thresholds Ti. Here, for example, the case of possible thresholds Ti (i=1, 2, 3, 4, 5, 6) will be considered.
[0022] <Step S12> In step S12 of the first loop, the possible threshold Ti is T1. The binary image generating unit 12 generates a binary image G21 for the possible threshold T1 by the following method. (1) The binary image generating unit 12 generates a difference image Gd between the first image and the second image from the first image and the second image. The first image is an image before the flood occurred, and the second image is an image of the same area after the flood occurred. The difference image shows the difference before and after the flood occurred. The binary image generating unit 12 may use the difference image Gd stored in the data storage unit 16. (2) The binary image generating unit 12 generates a binary image from the difference image Gd using the following Type 1 or Type 2 method. (Type 1) The binary image generating unit 12 converts the pixel value p k (k=1,2,3,...) is compared with the candidate threshold T1, and pixel values p k is set as the valid value (1), and the pixel value p k is set to an invalid value (0), and a binarized image G21 is generated. (Type 2) The binary image generating unit 12 converts the pixel value p k The statistic s calculated from (k=1,2,3,...) m (m=1,2,3,...) is compared with the candidate threshold T1, and the statistics s m is set as the effective value (1), and the statistic s below the candidate threshold T1 m is set to an invalid value (0), and a binarized image G21 is generated.
[0023] 6 shows a case where a binary image G21 is generated by Type 1. In FIG. 6, the binary image generating unit 12 generates a binary image G21 by using a pixel value p k (k=1, 2, 3, . . .) is compared with a candidate threshold T1. The binarization image generation unit 12 sets the pixel value of p k ≥T1 as the valid value, and p k sets the pixel value <T1 as the invalid value, and generates a binarization image.
[0024] FIG. 7 shows the case of generating the binarization image G21 by Type 2. In FIG. 7, the binarization image generation unit 12 compares s m (m = 1, 2, 3, ···) with the candidate threshold value T1. The binarization image generation unit 12 sets s m ≥T1 of the statistic as the valid value, and s m sets the statistic <T1 as the invalid value, and generates a binarization image. FIG. 7 will be described. The binarization image generation unit 12 calculates the statistic s m while shifting the window W in the determined direction in the difference image, and calculates the statistic s for each shifted position m m . The window W at the position m is denoted as Wm (m = 1, 2, 3, ···). The binarization image generation unit 12 calculates the probability distribution of the signal intensity of the pixels included in the window Wm for the window Wm, and calculates the statistic s m from the probability distribution of the window Wm. The binarization image generation unit 12 compares s m (m = 1, 2, 3, ···) with the candidate threshold value T1, and sets s m ≥T1 of the statistic s m as the valid value, and s m sets the statistic s <T1 as the invalid value, and generates a binarization image. As shown in FIG. 2, the binarization image G2i corresponds to the candidate threshold value Ti. Since it is the candidate threshold value T1 in the first loop, the binarization image G2i is the binarization image G21.
[0025] In Type 1 and Type 2, the binarization image generation unit 12 assigns the valid value 1 to the pixel value p k and the statistic s m equal to or greater than the candidate threshold value T1. The pixel value p k and the statistic s m less than the candidate threshold value T1 are assigned the invalid value 0. The area where the valid values gather is the difference area, and the area where the invalid values gather is the non-difference area. The binary image generating unit 12 generates a binary image G21 in which differential regions and non-differential regions exist from the differential image Gd by the above-mentioned method of Type 1 or Type 2. If valid pixels are displayed in black and invalid pixels in white, the binary image G21 is obtained as a black and white image. In the following description, we will assume the case of type 1. In the case of type 2, the pixel value p k The statistic s m This can be read as:
[0026] <Step S13> In step S13, the accuracy rate calculation unit 13 calculates the accuracy rate of the difference region for the binarized image G21. The definition of the "accuracy rate of the difference region" and the details of the process of calculating the accuracy rate of the difference region by the accuracy rate calculation unit 13 will be described later.
[0027] <Step S14> In step S14, the accuracy rate calculation unit 13 calculates the accuracy rate of the non-differential region for the binarized image G21. The definition of the "acceptance rate of the non-differential region" and the details of the process of calculating the accuracy rate of the non-differential region by the accuracy rate calculation unit 13 of the non-differential region will be described later.
[0028] <Step S15> In step S15, the correct answer rate calculation unit 13 judges whether the possible threshold Ti is the final threshold. That is, the correct answer rate calculation unit 13 judges whether the possible threshold Ti=T6. Here, since the possible threshold Ti=T1, the process returns to step S12.
[0029] <Step S12 (second loop)> In step S12 (the second loop), the binary image generating unit 12 calculates each pixel value p k and the potential threshold T2 to generate a binarized image G22, similar to the first loop.
[0030] <Step S13 and Step S14 (second loop)> In step S13 (second loop), the accuracy rate calculation unit 13 calculates the accuracy rate of the difference region for the binarized image G22. In step S14 (second loop), the accuracy rate calculation unit 13 calculates the accuracy rate of the non-difference region for the binarized image G22.
[0031] <Step S15> In step S15, the accuracy calculation unit 13 determines whether the possible threshold Ti=T6. Since the possible threshold Ti is T2, the process returns to step S12. In step S12, the binary image generation unit 12 generates a binary image G23 for the possible threshold T3. This following loop is repeated up to the possible threshold T6.
[0032] This loop generates the following pairs for the possible thresholds T1 to T6, as shown in Figure 2. If the differential correct answer rate and non-differential correct answer rate corresponding to the possible threshold Ti are denoted as ERi and NRi, respectively, there are the following six pairs. The difference image that is the basis of the six pairs is the difference image Gd. For the candidate thresholds Ti (i=1, 2, 3, 4, 5, 6), the accuracy rate calculation unit 13 calculates [Candidate threshold Ti, binarized image G2i, differential correct answer rate ERi, non-differential correct answer rate NRi] Generate. Specifically, the generated set is: [T1,G21,ER1,NR1] [T2,G22,ER2,NR2] [T3,G23,ER3,NR3] [T4,G24,ER4,NR4] [T5,G25,ER5,NR5] [T6,G26,ER6,NR6] It is.
[0033] <Details of Step S13 (Candidate Threshold T1)> The calculation method of the difference rate ER1 in step S13 will be described using the first loop as an example. In the first loop, it is [T1, G21, ER1, NR1]. In step S13 of the first loop, ER1 and NR1 are unknown. In step S13, the difference correct answer rate ER1 is calculated, and in step S14, the non-difference correct answer rate NR1 is calculated. The calculation method of the difference region correct answer rate ER1 in step S13 is shown below.
[0034] <Calculation of differential correct answer rate ER1> In calculating the difference correct answer rate ER1, the correct answer rate calculation unit 13 calculates the difference correct answer rate ER1 using the binarized image G2i, the land use classification data, and the correct answer determination auxiliary data. An example of the land use classification data is a land cover map. An example of the correct answer determination auxiliary data is a flood hazard map. Figure 8 shows a land cover map 20 and a flood hazard map 30. The flood hazard map 30 is shown diagrammatically.
[0035] <Calculating the accuracy of the difference area> The type of land use state of the differential region is estimated when the differential image Gd is generated. When calculating the differential accuracy rate ER1, the threshold determination unit 14 knows the estimated "type of land use state" for the differential region. A method for calculating the differential accuracy rate ER1 will be described below. The accuracy rate calculation unit 13 calculates the differential accuracy rate ER1 by referring to the calculation conditions in FIG. 9, which will be described later, for example. The calculation conditions in FIG. 9 are acquired by the candidate setting unit 11 from the data storage unit 15. The calculation procedure for the differential accuracy rate ER1 in the binarized image G21 is as follows. The difference area of the binarized image G21 is denoted as A1, and the non-difference area is denoted as A0. In the land cover map 20, urban areas are denoted as Z (urban) and suburban areas are denoted as Z (suburban). In the flood hazard map, flooded areas are denoted as H (flooded) and non-flooded areas are denoted as H (non-flooded).
[0036] Differential correct answer rate ER1 = Differential correct answer number ÷ denominator Let us assume that. (1. Denominator of differential correct answer rate ER1) The denominator is the area of "Z (city) and H (flooded) on the land cover map 20." In other words, expressed as a formula, the denominator of ER1 = the area of {Z (city)} ∩ {H (flooded)}. Note that if a process for matching the spatial resolution of the binarized image G21, the land cover map 20, and the flood hazard map 30 has been performed, the number of pixels may be used instead of the area. (2. Numerator of differential correct answer rate ER1) The numerator is the difference in the number of correct answers. The difference in the number of correct answers is the overlapping range of the area indicated by the denominator and A1. Therefore, numerator = A1 ∩ denominator = A1 ∩ {Z (city)} ∩ {{H (flooding)} It becomes.
[0037] <Calculating the accuracy rate in non-differential areas> Non-differential correct answer rate NR1 = number of non-differential correct answers ÷ denominator Let us assume that. (1. Denominator of non-differential correct answer rate NR1) The denominator is the sum of the area where "Land cover map 20 is Z (suburban)" and the area where "Land cover map is Z (urban) and flood hazard map is H (non-flooded)." Expressed as a formula, the denominator = area [{Z (suburban)} ∪ {Z (urban) and H (non-flooded)}]. (2. Numerator of non-differential correct answer rate NR1) The numerator is the number of correct answers without difference. The number of correct answers without difference is the overlapping area of the area of A0 superimposed on the area of the denominator. In other words, the numerator can be written as the formula: Numerator=A0∩Denominator=A0∩[{Z(suburban)}∪{Z(city)∩H(non-flooded)}] It becomes. In addition, if a process for aligning the spatial resolution of the binarized image G21, the land cover map 20, and the flood hazard map 30 has been performed, the differential accuracy rate ER1 and the non-differential accuracy rate NR1 may be calculated using the number of pixels instead of the area.
[0038] The method of calculating the differential correct answer rate ER1 and the non-differential correct answer rate NR1 by the correct answer rate calculation unit 13 will be described below. Z (urban) is an area classified as urban in the Land Cover Map 20. Z (suburban) indicates areas classified as suburban in the land cover map 20. H (Flooded) indicates a flooded area on the flood hazard map 30. H (non-flooded) indicates a non-flooded area on the flood hazard map 30. The flooded areas in the flood hazard map 30 are areas where the flood depth exceeds 0.5 m, for example. A non-flooded area on the flood hazard map 30 is, for example, an area with a flood depth of 0.5 m or less. The conditions for calculating the difference correct answer rate ER1 are provided to the correct answer rate calculation unit 13, for example, as shown in FIG. 9, which will be described later. The conditions for calculating the non-differential correct answer rate NR1 are provided to the correct answer rate calculation unit 13 as, for example, the conditions in FIG. 10 described later. The accuracy rate calculation unit 13 can extract areas of Z (urban), Z (suburban), H (flooded), and H (flooded) from the land cover map 20 and the flood hazard map 30 based on the conditions in Figures 9 and 10, for example. The calculation conditions in Figures 9 and 10 are acquired by the candidate setting unit 11 from the data storage unit 15.
[0039] <Input to the correct answer rate calculation unit 13> A: Binarized image G21 (Binarized image of a flooded area in an urban area) A1=1=Difference area of binary image G21 A2=0=Non-differential area of binary image G21 B: Conditions of land cover map 20 and flood hazard map 30 B1 = Flooded city = {Z(city)∩H(flooded)} B2 = City not flooded = {Z(city)∩H(not flooded)} B3=Suburban={Z(Suburban)}
[0040] <Output> <About the differential correct answer rate ER1> Denominator = {City not flooded} = {Z(city) ∩ H(not flooded)} = B1 It is. The numerator is the area (area) of the overlap between the denominator and A1. Therefore, Molecule=A1∩B1 The differential correct answer rate ER1 is ER1={A1∩B1} / B1 (Equation 1) It becomes. <Non-differential correct answer rate NR1> Denominator = {urban and non-flooded} ∪ {suburban} = {Z(urban) ∩ H(non-flooded)} ∪ {Z(suburban)} =B2∪B3 It is. The reason why {suburbs} is also used in the denominator is that the binarized image G21 is a flooded area image in an urban area, and the non-difference area (invalid area) includes not only non-flooded urban areas, but also non-urban areas. For example, in Figure 10 described later, pixel value = 2 (urban area) is excluded, and Z (suburbs) is defined by specifying pixel values = 1, 3-12. The numerator is the overlapping area (area) of the denominator and A0, so Molecule=A0∩{B2∪B3} It becomes. Therefore, the non-differential correct answer rate NR1 is NR1=A0∩{B2∪B3} / {B2∪B3} (Equation 2) It becomes.
[0041] Rewriting formulas 1 and 2 with Z, H, A1, and A0 gives the following formulas 11 and 21. ER1={A1∩B1} / B1=[A1∩{Z(city)∩H(flooding)}] / {Z(city)∩H(flooding)} (Formula 11) NR1=A0∩{B2∪B3} =[A0∩{{Z(city)∩H(non-flooded)}∪{Z(suburban)}}] / {{Z(city)∩H(non-flooded)}∪{Z(suburban)}} (Equation 21)
[0042] From Equations 11 and 21, the differential correct answer rate ER1 and the non-differential correct answer rate NR1 can be calculated from Z, H, A1, and A0, and the calculation conditions are given to the correct answer rate calculation unit 13 in FIG. 9 and FIG. Figure 9 shows an example of the conditions for calculating the denominator and numerator of Equation 11 when the binarized image G21 is a flooded area image in an urban area. The difference in the number of correct answers is the numerator. In Figure 9, the pixel value = 2 in the land cover map corresponds to Z (city). In the flood hazard map, pixel value >0.5 corresponds to H (flooded). In the binarized image, pixel value = 1 corresponds to A1.
[0043] <Calculation process of non-differential correct answer rate> Figure 10 shows an example of the conditions for finding the denominator and numerator of the non-differential correct answer rate NR1 in Equation 21 when the binarized image G21 is an image of a flooded area in an urban area. The number of non-differential correct answers is the numerator. In the land cover map, pixel values = 1, 3-12 correspond to Z (suburbs). In the flood hazard map, pixel values ≦ 0.5 correspond to H (non-flooded). In the binarized image, pixel value = 0 corresponds to A0.
[0044] <Threshold determination process> 11 is a graph showing the results of calculation of the difference correct answer rate ERi and the non-difference correct answer rate NR1 for a binarized image G2i created using multiple thresholds Ti. The dotted line indicates the correct answer rate in the non-difference region. The solid line indicates the accuracy rate of the difference region. The horizontal axis indicates the possible thresholds Ti (i=1, 2, 3, 4, 5, 6). The vertical axis indicates the accuracy rate (0 to 1).
[0045] <Step S17: Threshold Determination Process> The threshold determination process by the threshold determination unit 14 will be described. The threshold determination unit 14 determines the final definite threshold Td based on a preset accuracy rate threshold for the differential region and a preset accuracy rate threshold for the non-differential region. The accuracy rate threshold may be a range. In FIG. 11, the accuracy rate threshold for the differential region is 0.1 or more, and the accuracy rate threshold for the non-differential region is 0.9 or more. In this case, the definite threshold Td=1.5 can be determined. The accuracy rate threshold for the differential region and the accuracy rate threshold for the non-differential region may be set separately or may be used together. (1) Note that the optimal definite threshold Td may be determined by interpolating between multiple thresholds T that span the accuracy rate threshold. (2) Alternatively, a binary search may be applied to narrow down the range and determine the optimal definite threshold Td. This method has the advantage of being able to obtain the optimal definite threshold Td with fewer iterative processes than the interpolation method in (1).
[0046] 12 is a diagram for explaining the above-mentioned interpolation method (1). The threshold value determination unit 14 determines the definite threshold value Td by the following interpolation processing such as (a) and (b). (a) The correct answer rate calculation unit 13 calculates the correct answer rates for all of the threshold values T1 to T6. (b) The threshold value determination unit 14 performs linear interpolation using the accuracy rates of the possible threshold values T4 and T5 that straddle the accuracy rate threshold, and determines the optimal definite threshold value Td.
[0047] 13 is a diagram for explaining the binary search method of (2) above. The threshold determination unit 14 determines an optimal definite threshold Td by the following processes (a), (b), and (c). (a) The accuracy rate calculation unit 13 calculates the accuracy rates of the thresholds T1 and T2, and performs linear interpolation using each accuracy rate to calculate an optimal threshold candidate 1. (b) The threshold determination unit 14 calculates the accuracy rate of a new search section (thresholds T3 and T4) centered on the optimal threshold candidate T1, and calculates the optimal threshold candidate 2 in the same manner as in process (a). (c) If the difference between the optimal threshold T candidate 2 and the optimal threshold T candidate 1 is smaller than a predetermined iteration end difference, the threshold determination unit 14 sets the optimal threshold T candidate 2 as the optimal threshold T. Otherwise, it searches the next section as in process (b).
[0048] 14 is a flowchart of the operation of the threshold determination device 10 when the binary search method is used. In FIG. 14, steps S21 and S22 are added to the flowchart in FIG. In step S21, a search interval for the threshold T is set. In step S22, a new threshold search interval is set based on the accuracy rate of the search interval and the accuracy rate threshold. Step S21 is executed by the candidate setting unit 11, and step S22 is executed by the threshold determination unit .
[0049] (Hardware Supplement) 15 shows a hardware configuration of the threshold determination device 10. The threshold determination device 10 is a computer. The threshold determination device 10 includes a processor 210. The threshold determination device 10 includes, as hardware components, the processor 210, a main storage device 220, an auxiliary storage device 230, and a communication interface 240. The processor 210 is connected to other hardware via a signal line 250 and controls the other hardware.
[0050] The threshold determination device 10 includes a candidate setting unit 11, a binary image generating unit 12, a correct answer rate calculating unit 13, and a threshold determination unit 14. These functions are realized by a threshold determination program 231.
[0051] The processor 210 is a device that executes a threshold determination program 231. The processor 210 executes the threshold determination program 231 to realize the functions of a candidate setting unit 11, a binary image generating unit 12, a correct answer rate calculating unit 13, and a threshold determination unit 14. The processor 210 is an integrated circuit (IC) that performs arithmetic processing.
[0052] Specific examples of the main memory device 220 include a static random access memory (SRAM) and a dynamic random access memory (DRAM). The main memory device 220 holds the results of calculations by the processor 210.
[0053] The auxiliary storage device 230 is a storage device that stores data in a non-volatile manner. A specific example of the auxiliary storage device 230 is a hard disk drive (HDD). The auxiliary storage device 230 may be a portable recording medium. The auxiliary storage device 230 stores a threshold determination program 231 and various data 232. The various data 232 is data such as threshold setting data, land cover maps, flood hazard maps, and difference images. The data storage unit 15 is realized by the auxiliary storage device 230.
[0054] The communication interface 240 is a communication port through which the processor 210 communicates with other devices.
[0055] The processor 210 loads the threshold determination program 231 from the auxiliary storage device 230 into the main storage device 220. The processor 210 reads the loaded threshold determination program 231 from the main storage device 220 and executes it.
[0056] The threshold determination program 231 is a program that causes a computer to execute each process, procedure, or step of the candidate setting unit 11, the binary image generation unit 12, the accuracy rate calculation unit 13, and the threshold determination unit 14, where the "part" in each of the units is replaced with a "process," "procedure," or "step."
[0057] The threshold determination method is a method performed by the threshold determination device 10, which is a computer, executing the threshold determination program 231. The threshold determination program 231 may be provided by being stored in a computer-readable recording medium, or may be provided as a program product.
[0058] Various aspects of the present disclosure are summarized below as appendices. (Appendix 1) a data acquisition unit that acquires land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generating unit that compares, for each of a plurality of possible thresholds, a pixel value of each pixel of a differential image between a first image of a target area included in the land use classification data before the occurrence of the disaster and a second image of the target area after the occurrence of the disaster, with the candidate thresholds, and generates, from a comparison result, a binary image having, for each of the candidate thresholds, a valid area made up of pixel values that satisfy the candidate thresholds and an invalid area made up of pixel values that do not satisfy the candidate thresholds; an appropriateness calculation unit that calculates an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination unit that determines a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination device comprising: (Appendix 2) The suitability calculation unit is calculating an invalidity suitability indicating whether it is appropriate to invalidate the invalid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; The threshold determination unit: 2. A threshold determination device according to claim 1, which determines a definitive threshold from among the plurality of candidate thresholds based on the valid appropriateness and the invalid appropriateness. (Appendix 3) The threshold determination unit: A threshold determination device as described in Appendix 2, which determines the candidate threshold as a definitive threshold if the invalid appropriateness of the candidate threshold satisfies the invalid appropriateness threshold for determining the definitive threshold. (Appendix 4) The threshold determination unit: A threshold determination device described in any one of Supplementary Note 1 to Supplementary Note 3, which determines the candidate threshold as a definitive threshold if the validity appropriateness of the candidate threshold satisfies the validity appropriateness threshold for determining the definitive threshold. (Appendix 5) The land use classification data includes: Includes land cover maps, The disaster occurrence prediction data is 5. The threshold determination device of claim 1, further comprising a hazard map. (Appendix 6) The threshold determination unit: 6. The threshold determination device according to claim 1, wherein the definite threshold is determined using either an interpolation method or a binary search method. (Appendix 7) On the computer, A data acquisition process for acquiring land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generation process for generating a binary image having a valid area made up of pixel values that satisfy the candidate thresholds and an invalid area made up of pixel values that do not satisfy the candidate thresholds for each of a plurality of candidate thresholds, for a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, based on a comparison result; an appropriateness calculation process for calculating an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination process for determining a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination program that executes the above. (Appendix 8) The suitability calculation process includes: calculating an invalidity suitability indicating whether it is appropriate to invalidate the invalid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; The threshold determination process includes: A threshold determination program according to claim 7, which determines a definitive threshold from among the plurality of candidate thresholds based on the valid appropriateness and the invalid appropriateness. (Appendix 9) The threshold determination process includes: A threshold determination program as described in Appendix 8, which determines the candidate threshold as a definitive threshold if the invalid appropriateness of the candidate threshold satisfies the invalid appropriateness threshold for determining the definitive threshold. (Appendix 10) The threshold determination process includes: A threshold determination program described in any one of Appendix 7 to Appendix 9, which determines the candidate threshold as a definitive threshold if the validity appropriateness of the candidate threshold satisfies the validity appropriateness threshold for determining the definitive threshold. (Appendix 11) The land use classification data includes: Includes land cover maps, The disaster occurrence prediction data is 11. The threshold determination program according to any one of appendix 7 to appendix 10, comprising a hazard map. (Appendix 12) The threshold determination process includes: 12. The threshold determination program according to any one of claims 7 to 11, which determines a definite threshold using either an interpolation method or a binary search method. (Appendix 13) The computer Acquire land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, the pixel values of each pixel of the difference image are compared with each of a plurality of possible thresholds, and a binarized image is generated from a comparison result, the binarized image having, for each of the possible thresholds, a valid area made up of pixel values that satisfy the possible threshold and an invalid area made up of pixel values that do not satisfy the possible threshold; calculating a validity appropriateness indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; determining a definite threshold value from among the plurality of possible threshold values based on the validity appropriateness; Threshold determination method. (Appendix 14) a data acquisition unit that acquires land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generating unit that calculates statistics based on signal intensity of each of a plurality of pixels included in a plurality of regions in a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, compares the candidate thresholds with the statistics for each of a plurality of candidate thresholds, and generates a binary image having a valid region consisting of statistics that satisfy the candidate thresholds and an invalid region consisting of pixel statistics that do not satisfy the candidate thresholds based on the comparison result, for each of the candidate thresholds; an appropriateness calculation unit that calculates an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination unit that determines a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination device comprising: (Appendix 15) On the computer, A data acquisition process for acquiring land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generation process for calculating, for each of a plurality of regions in a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, a statistical quantity based on the signal intensity of each of a plurality of pixels included in the region, for each of a plurality of candidate thresholds, comparing the candidate thresholds with the statistical quantity, and generating, from the comparison result, a binary image having, for each of the candidate thresholds, a valid region consisting of statistical quantities that satisfy the candidate thresholds and an invalid region consisting of pixel statistical quantities that do not satisfy the candidate thresholds; an appropriateness calculation process for calculating an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination process for determining a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination program that executes the above. (Appendix 16) The computer Acquire land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; calculating, for each of a plurality of regions in a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, a statistical quantity based on the signal intensity of each of a plurality of pixels included in the region; comparing, for each of a plurality of candidate thresholds, the candidate threshold and the statistical quantity; and generating, from the comparison result, a binary image having, for each of the candidate thresholds, a valid region consisting of statistical quantities that satisfy the candidate threshold and an invalid region consisting of pixel statistical quantities that do not satisfy the candidate threshold; calculating a validity appropriateness indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; determining a definite threshold value from among the plurality of possible threshold values based on the validity appropriateness; Threshold determination method.
[0059] The embodiments of the present disclosure have been described above. Some of these embodiments may be combined and implemented. Also, one or some of them may be partially implemented. Note that the present disclosure is not limited to the above embodiments, and various modifications are possible as necessary. [Explanation of symbols]
[0060] 10 threshold determination device, 11 candidate setting unit, 12 binary image generation unit, 13 accuracy rate calculation unit, 14 threshold determination unit, 15 data storage unit, 20 land cover map, 30 flood hazard map, 210 processor, 220 main memory device, 230 auxiliary memory device, 231 threshold determination program, 232 various data, 240 communication interface, 250 signal line.
Claims
1. a data acquisition unit that acquires land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generating unit that compares, for each of a plurality of possible thresholds, a pixel value of each pixel of the difference image between a first image of the target area included in the land use classification data before the occurrence of the disaster and a second image of the target area after the occurrence of the disaster, with the candidate thresholds, and generates, from a comparison result, a binary image having, for each of the possible thresholds, a valid area made up of pixel values that satisfy the candidate thresholds and an invalid area made up of pixel values that do not satisfy the candidate thresholds; an appropriateness calculation unit that calculates an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination unit that determines a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination device comprising:
2. The suitability calculation unit is calculating an invalidity suitability indicating whether it is appropriate to invalidate the invalid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; The threshold determination unit: The threshold determination device according to claim 1 , further comprising: a determining unit for determining a definite threshold from among the plurality of possible thresholds based on the valid appropriateness and the invalid appropriateness.
3. The threshold determination unit: The threshold determination device according to claim 2 , wherein the potential threshold is determined as the definitive threshold when the invalid appropriateness of the potential threshold satisfies an invalid appropriateness threshold for determining the definitive threshold.
4. The threshold determination unit: The threshold determination device according to claim 1 , wherein the potential threshold is determined as a definitive threshold when the validity appropriateness of the potential threshold satisfies a validity appropriateness threshold for determining the definitive threshold.
5. The land use classification data includes: Includes land cover maps, The disaster occurrence prediction data is The threshold determination device according to claim 1 , further comprising a hazard map.
6. The threshold determination unit:
4. The threshold determination device according to claim 1, wherein the definite threshold is determined by using either an interpolation method or a binary search method.
7. On the computer, A data acquisition process for acquiring land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generation process for generating a binary image having a valid area made up of pixel values that satisfy the candidate thresholds and an invalid area made up of pixel values that do not satisfy the candidate thresholds for each of a plurality of candidate thresholds, for a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, based on a comparison result; an appropriateness calculation process for calculating an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination process for determining a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination program that executes the above.
8. The suitability calculation process includes: calculating an invalidity suitability indicating whether it is appropriate to invalidate the invalid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; The threshold determination process includes: The threshold determination program according to claim 7 , further comprising: determining a definite threshold from among the plurality of possible thresholds based on the valid appropriateness and the invalid appropriateness.
9. The threshold determination process includes:
9. The threshold determination program according to claim 8, wherein the potential threshold is determined as a definitive threshold when the invalid appropriateness of the potential threshold satisfies an invalid appropriateness threshold for determining the definitive threshold.
10. The threshold determination process includes:
10. The threshold determination program according to claim 7, further comprising: determining the potential threshold as a definitive threshold when the validity appropriateness of the potential threshold satisfies a validity appropriateness threshold for determining the definitive threshold.
11. The land use classification data includes: Includes land cover maps, The disaster occurrence prediction data is The threshold determination program according to any one of claims 7 to 9, further comprising a hazard map.
12. The threshold determination process includes:
10. The threshold determination program according to claim 7, wherein the definite threshold is determined by using either an interpolation method or a binary search method.
13. The computer Acquire land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a difference image between a first image of the target area included in the land use classification data before the occurrence of the disaster and a second image of the target area after the occurrence of the disaster, the pixel values of each pixel of the difference image are compared with each of a plurality of possible thresholds, and a binary image is generated from the comparison result, the binary image having, for each of the possible thresholds, a valid area made up of pixel values that satisfy the possible threshold and an invalid area made up of pixel values that do not satisfy the possible threshold; calculating a validity appropriateness indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; determining a definite threshold value from among the plurality of possible threshold values based on the validity appropriateness; Threshold determination method.
14. a data acquisition unit that acquires land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generating unit that calculates statistics for each of a plurality of regions in a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, based on signal intensity of each of a plurality of pixels included in the region, compares the candidate thresholds with the statistics for each of a plurality of candidate thresholds, and generates, from the comparison result, a binary image having a valid region consisting of statistics that satisfy the candidate threshold and an invalid region consisting of pixel statistics that do not satisfy the candidate threshold, for each of the candidate thresholds; an appropriateness calculation unit that calculates an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination unit that determines a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination device comprising:
15. On the computer, A data acquisition process for acquiring land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; a binary image generation process for calculating, for each of a plurality of regions in a difference image between a first image of the target area included in the land use classification data before the occurrence of the disaster and a second image of the target area after the occurrence of the disaster, a statistical quantity based on the signal intensity of each of a plurality of pixels included in the region, for each of a plurality of candidate thresholds, comparing the candidate thresholds with the statistical quantity, and generating, from the comparison result, a binary image having, for each of the candidate thresholds, a valid region consisting of statistical quantities that satisfy the candidate thresholds and an invalid region consisting of pixel statistical quantities that do not satisfy the candidate thresholds; an appropriateness calculation process for calculating an appropriateness of validity indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; a threshold determination process for determining a definite threshold from among the plurality of possible thresholds based on the validity appropriateness; A threshold determination program that executes the above.
16. The computer Acquire land use classification data, which is map information in which land use conditions in a region are classified into a plurality of types, and disaster occurrence prediction data, which is map information indicating a prediction of the occurrence of a disaster in the region indicated by the land use classification data; calculating, for each of a plurality of regions in a difference image between a first image of the target area before the occurrence of the disaster included in the land use classification data and a second image of the target area after the occurrence of the disaster, a statistical quantity based on the signal intensity of each of a plurality of pixels included in the region; comparing, for each of a plurality of candidate thresholds, the candidate threshold and the statistical quantity; and generating, from the comparison result, a binary image having, for each of the candidate thresholds, a valid region consisting of statistical quantities that satisfy the candidate threshold and an invalid region consisting of pixel statistical quantities that do not satisfy the candidate threshold; calculating a validity appropriateness indicating whether it is appropriate to validate the valid area for each of the binarized images by referring to the land use classification data and the disaster occurrence prediction data; determining a definite threshold value from among the plurality of possible threshold values based on the validity appropriateness; Threshold determination method.
Citation Information
Patent Citations
Relay satellite and data relay method
JP7150126B1
