IMAGE PROCESSING DEVICE, IMAGE PROCESSING METHOD, AND PROGRAM
20230146206 · 2023-05-11
Inventors
Cpc classification
G06V10/751
PHYSICS
G06T3/40
PHYSICS
G01N21/27
PHYSICS
G06V10/28
PHYSICS
International classification
G06T3/40
PHYSICS
G06V10/28
PHYSICS
Abstract
Provided are a device and a method of generating and outputting a corrected image including high-precision vegetation index values such as NDVI values in a vegetation portion region on the basis of an image in which a vegetation portion and a soil portion coexist. The device includes a vegetation index value set image correcting section that generates a corrected image of a vegetation index value set image in which a vegetation index value such as an NDVI value is set as a pixel value. The vegetation index value set image correcting section calculates, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, generates an averaged image in which the calculated average pixel values are set, generates a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and generates, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
Claims
1. An image processing device comprising: a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value is set as a pixel value and that generates a corrected image of the vegetation index value set image, the vegetation index value indicating a plant activity, wherein the vegetation index value set image correcting section calculates, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generates an averaged image in which the calculated average pixel values are set, generates a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and generates, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
2. The image processing device according to claim 1, wherein the vegetation index value set image is an NDVI (Normalized Difference Vegetation Index) image in which an NDVI value is set as a pixel value.
3. The image processing device according to claim 1, wherein the vegetation index value set image is generated on a basis of a camera image that includes a vegetation portion and a soil portion, the vegetation index value set image correcting section includes an averaging section that generates the averaged image, and the averaging section acquires a vegetation portion direction and a vegetation portion interval of the vegetation portion included in the vegetation index value set image, calculates, as the average pixel value of a process target pixel, an average value of pixel values of pixels that are arranged in a direction perpendicular to the vegetation portion direction and are disposed within the vegetation portion interval including the process target pixel, and generates the averaged image in which the average pixel values calculated for the respective pixels constituting the vegetation index value set image are set.
4. The image processing device according to claim 3, wherein the vegetation portion interval is a pixel interval within which pixels corresponding to one vegetation portion line and pixels corresponding to one soil portion line are disposed, and the averaging section calculates, as the average pixel value of the process target pixel, an average value of pixel values of pixels that are disposed within the vegetation portion interval including the process target pixel and that include pixels corresponding to one vegetation portion line and pixels corresponding to one soil portion line.
5. The image processing device according to claim 3, wherein by performing image analysis on the vegetation index value set image, the averaging section acquires the vegetation portion direction and the vegetation portion interval of a vegetation portion included in the vegetation index value set image.
6. The image processing device according to claim 3, wherein from data inputted by a user, the averaging section acquires at least any of the vegetation portion direction or the vegetation portion interval.
7. The image processing device according to claim 1, wherein the vegetation index value set image correcting section includes a subtraction section that receives an input of the averaged image, and generates a difference image between the vegetation index value set image and the averaged image, and the subtraction section subtracts a pixel value of each pixel in the averaged image from a pixel value of the corresponding pixel in the vegetation index value set image, and generates the difference image including pixel values obtained as the subtraction result.
8. The image processing device according to claim 1, wherein the vegetation index value set image is an NDVI (Normalized Difference Vegetation Index) image in which an NDVI value is set as a pixel value, the NDVI value in the NDVI image ranges from 0.0 to 1.0, and the difference image is a difference image between the NDVI image and the averaged image, and includes a pixel having a pixel value of 0 or greater and a pixel having a pixel value of 0 or less.
9. The image processing device according to claim 1, wherein the vegetation index value set image correcting section includes a binarization section that binarizes the difference image in accordance with a specified threshold, and generates a binarized image, and the binarization section defines the specified threshold=0, and generates the binarized image in which a pixel value=1 is set for each pixel constituting the difference image and having a pixel value that is positive, and a pixel value=0 is set for each pixel constituting the difference image and having a pixel value that is equal to 0 or is negative.
10. The image processing device according to claim 1, wherein the vegetation index value set image correcting section includes a binarization section that binarizes the difference image in accordance with a specified threshold, and generates a binarized image, and the binarization section generates the binarized image by using a value other than “0” as the prescribed threshold.
11. The image processing device according to claim 1, wherein the vegetation index value set image correcting section includes a multiplication section that generates the multiplication image by multiplying the vegetation index value set image and the binarized image, and the multiplication section multiplies a pixel value of each pixel in the vegetation index value set image with a pixel value of the corresponding pixel in the binarized image, and generates a multiplication image including pixel values obtained as the multiplication result.
12. The image processing device according to claim 11, wherein each pixel value in the binarized image is set to 0 or 1, and the multiplication section multiplies a pixel value of each pixel in the vegetation index value set image with a pixel value of the corresponding pixel set to 0 or 1 in the binarized image, and generates the multiplication image including a pixel value that is equal to 0 and a pixel value reflecting the pixel value in the vegetation index value set image as the multiplication result.
13. The image processing device according to claim 11, wherein the vegetation index value set image is generated on a basis of a camera image that includes a vegetation portion and a soil portion, and the multiplication section generates the multiplication image in which a pixel value=0 is set in a soil portion region.
14. The image processing device according to claim 1, wherein the vegetation index value set image correcting section includes a multiplication image averaging section that performs an averaging process on the multiplication image, and the multiplication image averaging section calculates, for each of pixels constituting the multiplication image, an average pixel value of the pixel and neighboring pixels, generates an averaged multiplication image in which the calculated average pixel values are set, and uses the generated averaged multiplication image as the corrected image of the vegetation index value set image.
15. The image processing device according to claim 14, wherein the multiplication image averaging section generates the averaged multiplication image by generating an extracted vegetation portion image obtained by extracting, from the multiplication image, a vegetation portion region that is assessed as a vegetation portion only, acquiring a vegetation portion direction and a vegetation portion interval in the generated extracted vegetation portion image, calculating, as an average pixel value of a process target pixel, an average value of pixel values of pixels that are arranged in a direction perpendicular to the vegetation portion direction and are disposed within the vegetation portion interval including the process target pixel, and enlarging the extracted vegetation portion image to an image size of the vegetation index value set image after calculating the average pixel values of respective pixels constituting the multiplication image.
16. An image processing method that is executed in an image processing device, the image processing device including a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value indicating a plant activity is set as a pixel value and that generates a corrected image of the vegetation index value set image, the method comprising: causing the vegetation index value set image correcting section to calculate, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generate an averaged image in which the calculated average pixel values are set, generate a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and generate, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
17. A program for causing an image processing device to execute image processing, the image processing device including a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value indicating a plant activity is set as a pixel value and that generates a corrected image of the vegetation index value set image, the program being configured to cause the vegetation index value set image correcting section to perform: a process of calculating, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generating an averaged image in which the calculated average pixel values are set; a process of generating a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold; and a process of generating, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
DESCRIPTION OF EMBODIMENT
[0046] Hereinafter, an image processing device, an image processing method, and a program according to the present disclosure will be explained with reference to the drawings. It is to be noted that the explanation will be given in accordance with the following order.
[0047] 1. Index (vegetation index) indicating activity of plant
[0048] 2. Example of conventional process of calculating NDVI value which is activity index value of plant, and problems
[0049] 3. Details of configuration and processes in image processing device according to present disclosure
[0050] 3-1. Process that is executed by averaging section 121
[0051] 3-2. Process that is executed by subtraction section 122
[0052] 3-3. Process that is executed by binarization section 123
[0053] 3-4. Process that is executed by multiplication section 124
[0054] 3-5. Process that is executed by multiplication image averaging section 125
[0055] 4. Sequence of processes that are executed by image processing device according to present disclosure
[0056] 5. Hardware configuration example of image processing device
[0057] 6. Conclusion of configuration according to present disclosure
1. Index (Vegetation Index) Indicating Activity of Plant
[0058] First, an index (vegetation index) that indicates the activity of a plant will be explained.
[0059] As previously explained, there has been a technology of capturing an image of a variety of plants including crops, flowers, and trees with a camera mounted on a drone or the like, for example, analyzing the captured image, and measuring the activity of each plant.
[0060] Examples of an index (vegetation index) that indicates the activity of a plant include an NDVI (Normalized Difference Vegetation Index).
[0061] In most cases, an NDVI is calculated in accordance with the following (Expression 1).
NDVI=(NIR−RED)/(NIR+RED) (Expression 1)
[0062] in the above (Expression 1),
[0063] RED (infrared) and NIR (near infrared) represent the intensity (pixel value) of a RED (infrared) wavelength (approximately 0.63 to 0.69 μm) and the intensity (pixel value) of an NIR (near infrared) wavelength (approximately 0.76 to 0.90 μm) in each pixel in an image captured by a camera (multi-spectral camera) that is capable of taking an image of two types of wavelengths of infrared rays and infrared rays simultaneously.
[0064] Pixel values which indicate the RED (infrared) intensity and the NIR (near infrared) intensity acquired from a camera image are obtained by measuring reflection light from a subject.
[0065] In plants, chlorophyll absorbs light of an infrared wavelength to perform photosynthesis, and light that cannot be absorbed is released as diffuse reflection from leaves. Therefore, it can be determined that a leaf that absorbs light of a reddish wavelength has a high activity.
[0066] For example, a camera 11 is mounted on a drone 10, as depicted in
[0067] In the farm, trees, flowers, vegetables such as green onions, cabbages, Chinese cabbages, or spinaches, etc. are grown, for example.
[0068] As depicted in
[0069] A plurality of vegetation portion lines is formed at a fixed interval. As a result of setting vegetation portion lines at a fixed interval in this manner, plants to be grown can be exposed to plenty of sunshine. Moreover, the related works can be facilitated. Thus, there are many advantages.
[0070] However, this generates a configuration in which vegetation portion lines where plants to be grown are planted and soil portion lines where no plant is planted are alternately arranged in the farm, as depicted in
[0071] When an image of the farm where vegetation portion lines and soil portion lines coexist, as depicted in
[0072] When such an image is used to calculate an NDVI value which is a vegetation index value, an NDVI value calculating process based on pixel value data including pixel values of the soil portion lines is performed. Therefore, precise vegetation index values in the vegetation portions only cannot be calculated.
[0073]
[0074] NDVI values corresponding to pixels in the camera image in
NDVI=(NIR−RED)/(NIR+RED) (Expression 1)
[0075] NDVI values corresponding to the pixels are calculated according to Expression (1).
[0076] One example of an image that is generated on the basis of the calculation result is (b) NDVI image in
[0077] Pixel values that are set for the respective pixels in the NDVI image correspond to NDVI values.
[0078] Each NDVI value is set to NDVI=0.0 to 1.0, for example. Each white portion (high-intensity portion) in the (b) NDVI image in
[0079] Each black portion (low-intensity portion) in the (b) NDVI image in
[0080] However, black portions (low-intensity portions) in the (b) NDVI image in
2. Example of Conventional Process of Calculating NDVI Value which is Activity Index Value of Plant, and Problems
[0081] Next, an example of a conventional process of calculating an NDVI value which is a plant activity index value and problems thereof will be explained with reference to the drawings in
[0082]
[0083] It is assumed that a portion of the farm is a poor growth region 20, as depicted in
[0084] When an NDVI image is generated from a captured image of the farm including the poor growth region 20, an image region, in the NDVI image, corresponding to the poor growth region 20 is a low-intensity image region where a pixel value (NDVI value) is low, as depicted in
[0085] It is to be noted that, in the NDVI image in
[0086] It is to be noted that, for easy understanding of the explanation, NDVI images in
[0087] As depicted in
[0088] An example of a conventional process of calculating activity index values (NDVI values) of vegetation portions only on the basis of such an image will be explained with reference to
[0089] In
[0090] First, a histogram of pixel values (NDVI values) of all the pixels in the NDVI image is created.
[0091] In
[0092] The (2) histogram in
[0093] A curve indicated by a solid line in the graph in (2) of
[0094] As depicted in (2) of
[0095] On the other hand, it is inferred that the left peak, which is a small peak having a lower NDVI value, is a peak indicating a distribution of NDVI values of pixels corresponding to the soil portion lines.
[0096] On the basis of a result of this inference, a threshold, that is,
[0097] an “estimated threshold (NDVI value=0.4) between a vegetation portion and a soil portion” is defined, as illustrated in (2) of
[0098] As illustrated in (2) of
[0099] Furthermore, as illustrated in (2) of
[0100] An intersection point (NDVI value=0.4) of these estimated distribution curves is obtained, and the intersection point (NDVI value=0.4) is defined as an “estimated threshold (NDVI value=0.4) between a vegetation portion and a soil portion.”
[0101] The estimated threshold is used to discriminate between a vegetation portion and a soil portion included in the (1) NDVI image in
[0102] Specifically, a region having a pixel value (NDVI value) equal to the threshold=0.4 or greater is determined as a vegetation portion, and a region having a pixel value of less than the threshold=0.4 is determined as a soil portion.
[0103] Only a vegetation portion selected as a result of this determination, or a region determined as a vegetation portion having a pixel value equal to the threshold=0.4 or greater is regarded as a target the plant activity index value (NDVI value) of which is to be analyzed.
[0104] As a result of the region determination using this “threshold,” regions each having a pixel value of the threshold=less than 0.4 are determined as solid portions so that these regions can be excluded from targets the plant activity index value (NDVI value) of which are to be calculated.
[0105] However, when the region determination using the “threshold” is made, there is a possibility that the poor growth region 20 included in the (1) NDVI image in
[0106] A specific example thereof will be explained with reference to
[0107] (1) NDVI image in
[0108] (2) in
[0109] The horizontal axis indicates the pixel position on the pixel line AB. The vertical axis indicates the NDVI value of each pixel.
[0110] As illustrated in the graph, the NDVI value of the pixel line AB forms a curve having a plurality of peaks and valleys formed at a fixed interval.
[0111] High NDVI value portions (peak portions) and low NDVI value portions (valley portions) correspond to vegetation portions and soil portions, respectively.
[0112] It is assumed that, by using the “estimated threshold (NDVI value=0.4) between a vegetation portion and a soil portion” which has been explained with reference to
[0113] A dotted line substantially at the center of the graph in (2) of
[0114] A region having an NDVI value higher than the estimated threshold (NDVI value=0.4) is determined as a vegetation portion region while a region having an NDVI value lower than the estimated threshold is determined as a soil portion region.
[0115] However, as illustrated in (2) of
[0116] Therefore, when the region determination using the “estimated threshold” is made, a problem that a vegetation portion including a poor growth region is erroneously determined as a soil portion arises.
3. Details of Configuration and Processes in Image Processing Device According to Present Disclosure
[0117] Next, the details of the configuration and processes in an image processing device according to the present disclosure will be explained.
[0118] An image processing device according to the present disclosure is capable of solving the abovementioned problems and determining a plant activity with high precision.
[0119] That is, an image processing device according to the present disclosure is capable of precisely calculating a vegetation index which indicate a plant activity such as an NDVI value in a vegetation portion line on the basis of an image obtained by capturing a farm where vegetation portion lines and soil portion lines coexist.
[0120] When the configuration and processes according to the present disclosure are applied, a plant activity can be determined with high precision.
[0121] The details of the configuration and processes in an image processing device according to the present disclosure will be explained with reference to
[0122]
[0123] As depicted in
[0124] The NDVI image generating section 101 receives an input of a captured image 51, and generates an NDVI image 52.
[0125] The captured image 51 is captured by the camera 11 mounted on the drone 10 depicted in
[0126] The camera 11 is a multi-spectral camera. From the captured image 51, the intensity (pixel value) of an RED (infrared) wavelength (approximately 0.63 to 0.69 μm) and the intensity of an NIR (near infrared) wavelength (approximately 0.76 to 0.90 μm) in each pixel can be acquired.
[0127] The captured image 51 is inputted to the NDVI image generating section 101, and the NDVI image generating section 101 calculates the NDVI value of each pixel in the captured image 51 according to the abovementioned (Expression 1), that is,
NDVI=(NIR−RED)/(NIR+RED) (Expression 1),
[0128] in which RED (infrared) and NIR (near infrared) represent the intensity (pixel value) of a RED (infrared) wavelength (approximately 0.63 to 0.69 μm) and the intensity of an NIR (near infrared) wavelength (approximately 0.76 to 0.90 μm), respectively.
[0129] The NDVI image generating section 101 calculates the NDVI values of respective pixels in the captured image 51, and generates the NDVI image 52 in which the calculated pixel values (NDVI values) are set in respective pixels.
[0130] The NDVI image 52 is similar to the (1) NDVI image in
[0131] As previously explained, the NDVI value is set to NDVI=0.0 to 1.0, for example. In the (1) NDVI image in
[0132] The NDVI image 52 generated by the NDVI image generating section 101 is inputted to the NDVI image correcting section 102.
[0133] The NDVI image correcting section 102 corrects the NDVI image 52 generated by the NDVI image generating section 101.
[0134] Specifically, an output image (corrected NDVI image) 53 in which a region assessed as a soil portion can be clearly distinguished from a region assessed as a vegetation portion included in the NDVI image 52 is generated, for example.
[0135] Alternatively, NDVI values in regions assessed as soil portions are eliminated, and an output image (corrected NDVI image) 53 which includes NDVI values in regions assessed as vegetation portions only, is generated.
[0136] The details of an image correcting process that is executed by the NDVI image correcting section 102 will be explained later.
[0137] The output image (corrected NDVI image) 53 generated by the NDVI image correcting section 102 is outputted to the image displaying section 103, and is displayed.
[0138] The output image (corrected NDVI image) 53 which is displayed on the image displaying section 103 is either
[0139] (a) an output image (corrected NDVI image) in which regions assessed as soil portions and regions assessed as vegetation portions are clearly distinguishable from each other, or
[0140] (b) an output image (corrected NDVI image) from which NDVI values in regions assessed as soil portions have been eliminated, and which includes NDVI values in regions assessed as vegetation portions only.
[0141] On the basis of either of the image (a) or (b) and the output image (corrected NDVI image) 53, the plant activity in each vegetation portion region can be precisely discerned.
[0142] It is to be noted that, in an embodiment which will be explained later, the image processing device 100 according to the present disclosure uses an “NDVI” as a vegetation index value to indicate an activity of a plant. However, this embodiment is one example, and the image processing device 100 according to the present disclosure can use a vegetation index value other than an “NDVI,” as a vegetation index value to indicate an activity of a plant.
[0143] That is, an NDVI image is one example of the vegetation index value set image.
[0144] In addition, the NDVI image generating section 101 of the image processing device 100 depicted in
[0145] Hereinafter, an embodiment in which “NDVI” is used as a representative example of a vegetation index value will be explained.
[0146] The detailed configuration and process in the NDVI image correcting section 102 of the image processing device 100 depicted in
[0147]
[0148] As depicted in
[0149] It is to be noted that the multiplication image averaging section 125 is optional, and the multiplication image averaging section 125 may be omitted.
[0150] Hereinafter, the details of processes that are executed by these sections will be explained in order.
[0151] (3-1. Process that is Executed by Averaging Section 121)
[0152] First, a process that is executed by the averaging section 121 will be explained.
[0153] The NDVI image 52 generated by the NDVI image generating section 101 is inputted to the averaging section 121 of the NDVI image correcting section 102, and the averaging section 121 generates an averaged image of the inputted NDVI image 52.
[0154]
[0155] (1a) in
[0156] That is, the (1a) NDVI image in
[0157] (1b) in
[0158] The horizontal axis indicates the pixel position on the pixel line AB. The vertical axis indicates an NDVI value of each pixel.
[0159] The graph in (1b) in
[0160] For example, the (1a) NDVI image 52 in
[0161] A specific example of the averaging process that is executed by the averaging section 121 will be explained with reference to
[0162]
[0163] First, the averaging section 121 acquires a vegetation portion direction 71 and a vegetation portion interval 72 from the NDVI image 52 which is a target to be subjected to the averaging process. In the example depicted in
[0164] It is to be noted that the vegetation portion direction 71 and the vegetation portion interval 72 are acquired through image analysis of the NDVI image 52 which is a target to be subjected to the averaging process. However, a user may confirm the image and input the vegetation portion direction 71 and the vegetation portion interval 72. Alternatively, the vegetation portion direction 71 and the vegetation portion interval 72 may be acquired with reference to a preset sketch of the farm.
[0165] In a certain farm, a vegetation portion direction and a vegetation portion interval vary in each region in some cases. In such a case, vegetation portion directions and vegetation portion intervals in respective regions may be acquired, and then, a process explained below may be performed for each region.
[0166] Next, the averaging section 121 executes an averaging process on pixel values (NDVI values) set for respective pixels in the NDVI image 52 on the basis of the acquired vegetation portion direction 71 and the acquired vegetation portion interval 72.
[0167] The averaging process is performed for each pixel in the NDVI image 52. A process to be performed on a process target pixel 81 in
[0168] Each vegetation portion interval 72 includes pixels of one vegetation portion line and pixels of one soil portion line. Therefore, an average pixel value of the pixels included in a certain vegetation portion interval 72 is a local average value of a vegetation portion and a soil portion.
[0169] The averaging section 121 performs the pixel-based averaging process on each of all the pixels constituting the NDVI image 52. That is, the pixel-based averaging process is performed while the process target pixel is sequentially changed from the upper left end to the lower right end in the NDVI image 52. Through what is called a moving average pixel value calculating process, the average pixel value of each of the pixels is calculated.
[0170] It is to be noted that, for a region where pixels cannot be selected in a vegetation portion interval centered on a process target pixel because the process target pixel is in an end region of the image, the process target pixel 81 is not set at the center, and pixels disposed in a range which includes the process target pixel 81, pixels corresponding to one vegetation portion line, and pixels corresponding to one soil portion line, are selected as averaging target pixels, as depicted in
[0171] In the abovementioned manner, an average pixel value of the pixel values (NDVI values) of a plurality of pixels that is arranged in a direction perpendicular to the vegetation portion direction and is disposed within a vegetation portion interval with respect to the process target pixel is calculated, and the calculated pixel value is set as a pixel value of the process target pixel.
[0172] The averaging section 121 executes this process on each of all the pixels in the NDVI image 52 to generate an averaged image.
[0173]
[0174] (2a) of
[0175] It is to be noted that (2b) of
[0176] A graph indicated by a solid line indicates the average pixel value (average NDVI value).
[0177] A dotted line indicates an NDVI value in the inputted original NDVI image 52 before executing the averaging process.
[0178] (3-2. Process that is Executed by Subtraction Section 122)
[0179] Next, a process that is executed by the subtraction section 122 will be explained.
[0180] The following two images are inputted to the subtraction section 122.
[0181] (1) the inputted original NDVI image 52 before executing the averaging process, and
[0182] (2) the averaged image (=(2a) averaged image in
[0183] By using the two inputted images, the subtraction section 122 subtracts a pixel value in the averaged image from a pixel value in the inputted original NDVI image 52.
[0184] That is, the pixel value of a pixel in the averaged image is subtracted from the pixel value of the corresponding pixel in the inputted original NDVI image 52, and a difference image including pixel values obtained as the subtraction result is generated.
[0185] A differential pixel value (differential NDVI value) which is the pixel value of each pixel constituting the difference image is as follows.
Differential pixel value (differential NDVI value) in the difference image=(pixel value (NDVI value) in the inputted NDVI image)−(average pixel value (average NDVI value) in the averaged image)
[0186] The subtraction section 122 performs the above subtraction process on each of all the pixels in the inputted NDVI image 52, and generates a difference image including differential pixel values (differential NDVI values) obtained as the subtraction result.
[0187]
[0188] (3a) of
[0189] A differential pixel value (differential NDVI value) that is the pixel value of each pixel constituting the difference image is as follows.
Differential pixel value (differential NDVI value) in the difference image=(pixel value (NDVI value) in the inputted NDVI image)−(average pixel value (average NDVI value) in the averaged image)
[0190] It is to be noted that (3b) of
[0191] A graph indicated by a solid line indicates a differential pixel value (differential NDVI value) in the difference image.
[0192] A dotted line indicates an NDVI value in the inputted original NDVI image 52.
[0193] As depicted in (3b) of
[0194] (3-3. Process that is Executed by Binarization section 123)
[0195] Next, a process that is executed by the binarization section 123 will be explained.
[0196] The binarization section 123 binarizes the pixel values or the differential pixel values (differential NDVI values) of the pixels constituting the difference image (=the (3a) difference image in
[0197] The binarization section 123 binarizes the pixel values of the pixels constituting the difference image (=(3a) difference image in
[0198] That is, the binarization section 123 binarizes the differential pixel values (differential NDVI values) of the pixels constituting the difference image (=(3a) difference image in
[0199]
[0200] (4a) in
[0201] The binarized pixel values (binarized NDVI values) which are the pixel values of the pixels constituting the binarized image are 0 or 1.
[0202] That is, in the binarized image, a pixel value=1 is set in a case where a corresponding pixel in the difference image (=(3a) difference image in
[0203] It is to be noted that (4b) in
[0204] A graph indicated by a solid line indicates a binarized pixel value (binarized NDVI value) in the binarized image.
[0205] A dotted line indicates an NDVI value in the inputted original NDVI image 52.
[0206] As illustrated in (4b) of
[0207] In the binarized image generated by the binarization section 123, a portion where the binarized pixel value (binarized NDVI value)=1 can be assessed as a vegetation portion. On the other hand, a portion where the binarized pixel value (binarized NDVI value)=0 can be assessed as a soil portion.
[0208] It is to be noted that the process example, in which the binarization section 123 generates a binarized image in which a pixel value=1 is set in a case where a corresponding differential pixel value (differential NDVI value) in the difference image is positive (plus), and a pixel value=0 is set in a case where a corresponding differential pixel value in the difference image is equal to 0 or is negative (minus), has been explained. That is, an example of the binarization process using a threshold=0 has been explained.
[0209] The binarization section 123 may perform a process other than the above process. For example, the binarization section 123 may perform binarization using, as the threshold, a value other than “0” such as threshold=0.1, threshold=0.2, or threshold=−0.1.
[0210] (3-4. Process that is Executed by Multiplication Section 124)
[0211] Next, a process that is executed by the multiplication section 124 will be explained.
[0212] The following two images are inputted to the multiplication section 124.
[0213] (1) the inputted original NDVI image 52, and
[0214] (2) the binarized image generated by the binarization section 123 (=(4a) binarized image in
[0215] By using these two inputted images, the multiplication section 124 multiplies the pixel values in the inputted NDVI image 52 with the corresponding pixel values in the binarized image.
[0216] That is, the pixel value of a pixel in the input NDVI image 52 is multiplied with the pixel value of the corresponding pixel in the binarized image, and a multiplication image including pixel values obtained as the multiplication result is generated.
[0217] A multiplication pixel value (multiplication NDVI value) which is a pixel value of each pixel constituting the multiplication image is as follows.
Multiplication pixel value (multiplication NDVI value) in the multiplication image=(pixel value (NDVI value) in the inputted NDVI image)×(binarized pixel value (binarized NDVI value) in the binarized image)
[0218] The multiplication section 124 performs the abovementioned multiplication process on each of all the pixels in the inputted NDVI image 52, and generates a multiplication image including multiplication pixel values (multiplication NDVI values) obtained as the multiplication result.
[0219]
[0220] (5a) in
[0221] A multiplication pixel value (multiplication NDVI value) which is the pixel value of each pixel constituting the multiplication image is as follows.
Multiplication pixel value (multiplication NDVI value) in the multiplication image=(pixel value (NDVI value) in the inputted NDVI image)×(binarized pixel value (binarized NDVI value) in the binarized image)
[0222] It is to be noted that (5b) in
[0223] A graph indicated by a solid line indicates a multiplication pixel value (multiplication NDVI value) in the multiplication image.
[0224] A dotted line indicates an NDVI value in the inputted original NDVI image 52.
[0225] As illustrated in (5b) of
[0226] That is, regarding each vegetation portion in the multiplication image, a pixel value (NDVI value) in the inputted original NDVI image 52 is reflected. Regarding each soil portion in the multiplication image, a pixel value (NDVI value)=0 is uniformly set.
[0227] Regarding the poor growth region CD portion, a pixel value (NDVI value) in the inputted original NDVI image 52 is also reflected in a multiplication pixel value (multiplication NDVI value) in the multiplication image, as is clear from the graph illustrated in (5b) of
[0228] The (5a) multiplication image in
[0229] In the (5a) multiplication image in
[0230] Furthermore, if the pixel value (NDVI value) setting states in the non-black regions are observed, the plant activities in the respective regions can be analyzed.
[0231] In addition, a user (image observer) can confirm that, in the CD region on the lower right side of the (5a) multiplication image in
[0232] It is to be noted that the (5a) multiplication image in
[0233] (3-5. Process that is Executed by Multiplication Image Averaging Section 125)
[0234] Next, a process that is executed by the multiplication image averaging section 125 will be explained.
[0235] A process at the multiplication image averaging section 125 is not required but optional, as previously explained.
[0236] The multiplication image averaging section 125 performs the averaging process on the multiplication image generated by the multiplication section 124, generates an averaged multiplication image, and outputs the generated image as the output image (corrected NDVI image) 53 to the image displaying section 103.
[0237] A process that is executed by the multiplication image averaging section 125 will be explained with reference to
[0238]
[0239] This is a multiplication image that is generated by the multiplication section 124.
[0240] The multiplication image averaging section 125 performs the averaging process on the (5a) multiplication image excluding pixel values (NDVI pixel values)=0 in soil regions.
[0241] It is to be noted that pixel values (NDVI values)=0 are set in all the soil portion regions in the (5a) multiplication image. The multiplication image averaging section 125 performs the averaging process on regions excluding the soil regions where a pixel value=0 is set.
[0242] Specifically, the following process of calculating an average pixel value is performed for each pixel in the (5a) multiplication image.
Average pixel value=(total pixel value in the averaging process range)/(the number of pixels having a pixel value>0 in the averaging process range)
[0243] A specific process sequence will be explained. First, the multiplication image averaging section 125 acquires the vegetation portion direction 71 and the vegetation portion interval 72 from the (5a) multiplication image in
[0244] Next, the multiplication image averaging section 125 performs the averaging process on the pixel values (NDVI values) set for respective pixels in the (5a) multiplication image in
[0245] A process that is performed on a process target pixel 91 in (5a) of
[0246] The average pixel value which is obtained by the averaging process is calculated in accordance with the following expression, as previously explained.
Average pixel value=(total pixel values of the pixels in the averaging process range)/(the number of pixels having a pixel value>0 in the averaging process range)
[0247] This pixel-based averaging process is performed on each of all the pixels constituting the (5a) multiplication image in
[0248] It is to be noted that, for a region where pixels cannot be selected in a vegetation portion interval centered on a process target pixel because the process target pixel is in an end region of the image, a process that is similar to that previously explained with reference to
[0249] In the abovementioned manner, an average pixel value of the pixel values (NDVI values) of a plurality of pixels that is arranged in a direction perpendicular to the vegetation portion direction and is included in a vegetation portion interval with respect to a process target pixel is calculated, and the calculated pixel value is set as a pixel value of the process target pixel.
[0250] The multiplication image averaging section 125 calculates the averaged multiplication pixel value for each of all the pixels in the (5a) multiplication image in
[0251] The multiplication image averaging section 125 outputs the (6b) averaged multiplication image in
[0252]
[0253] An image in (6b) of
[0254] It is to be noted that (6c) of
[0255] A graph indicated by a solid line indicates an averaged multiplication pixel value (averaged multiplication NDVI value).
[0256] A dotted line indicates an NDVI value in the inputted original NDVI image 52.
[0257] The (6b) averaged multiplication image in
4. Sequence of Processes that are Executed by Image Processing Device According to Present Disclosure
[0258] Next, a sequence of processes that are executed by an image processing device according to the present disclosure will be explained.
[0259]
[0260] It is to be noted that processes based on the flowchart in
[0261] Hereinafter, steps in the flowchart in
[0262] (Step S101)
[0263] First, at step S101, the image processing device receives an input of a captured image.
[0264] The captured image is an image captured by the camera 11 mounted on the drone 10 depicted in
[0265] (Step S102)
[0266] Next, at step S102, the image processing device 100 calculates an NDVI value corresponding to each pixel in the captured image, and generates an NDVI image.
[0267] This step is executed by the NDVI image generating section 101 depicted in
[0268] The NDVI image generating section 101 receives an input of the captured image 51, and calculates an NDVI value of each pixel in the captured image 51 according to the abovementioned (Expression 1), that is,
NDVI=(NIR−RED)/(NIR+RED) (Expression 1)
[0269] in which RED (infrared) and NIR (near infrared) represent the intensity (pixel value) of a RED (infrared) wavelength (approximately 0.63 to 0.69 μm) and the intensity of an NIR (near infrared) wavelength (approximately 0.76 to 0.90 μm), respectively.
[0270] The NDVI image generating section 101 calculates an NDVI value of each pixel in the captured image, and generates an NDVI image in which the calculated pixel value (NDVI value) is set for each pixel.
[0271] The NDVI image is the NDVI image 52 which has been explained with reference to (1a) in
[0272] It is to be noted that an example of the NDVI image generated at step S102 and a series of images that are generated by the sections in the NDVI image correcting section 102 that corrects the NDVI image are depicted in
[0273] Hereinafter, steps S103 and later will be explained with reference to
[0274] (Step S103)
[0275] Next, at step S103, the image processing device 100 averages the pixel values of pixels corresponding to the width of a vegetation portion line sequentially to a direction perpendicular to the vegetation portion line in the NDVI image, and generates an averaged image.
[0276] This step is executed by the averaging section 121 of the HDVI image correcting section 102 depicted in
[0277] The NDVI image generated by the NDVI image generating section 101 is inputted to the averaging section 121 of the NDVI image correcting section 102, and the averaging section 121 generates an averaged image of the inputted NDVI image.
[0278] This step is the process that has been explained with reference to
[0279] The averaged image is an output of the averaging section 121 depicted in
[0280] (Step S104)
[0281] Next, at step S104, the image processing device 100 subtracts a pixel value in the averaged image from the corresponding pixel value in the NDVI image generated at step S102, and generates a difference image including the difference pixel values (differential NDVI values).
[0282] This step is executed by the subtraction section 122 of the NDVI image correcting section 102 depicted in
[0283] The following two images are inputted to the subtraction section 122.
[0284] (1) the inputted original NDVI image before executing the averaging process, and
[0285] (2) the averaged image (=(2a) averaged image in
[0286] By using these two inputted images, the subtraction section 122 subtracts a pixel value in the averaged image from the corresponding pixel value in the NDVI image, and generates a difference image.
[0287] A differential pixel value (differential NDVI value) which is the pixel value of each pixel constituting the difference image is as follows.
Differential pixel value (differential NDVI value) in the difference image=(pixel value (NDVI value) in the inputted NDVI image)−(average pixel value (average NDVI value) in the averaged image)
[0288] It is to be noted that a differential pixel value (differential NDVI value) in the difference image ranges from a minus value to a plus value, as previously explained with reference to
[0289] (Step S105)
[0290] Next, at step S105, the image processing device 100 binarizes pixel values, that is, differential pixel values (differential NDVI values) of pixels constituting the difference image, and generates a binarized image.
[0291] This step is executed by the binarization section 123 of the NDVI image correcting section 102 depicted in
[0292] The binarization section 123 binarizes the pixel values of the pixels constituting the difference image generated by the subtraction section 122. That is, the binarization process of setting a pixel value=1 for a differential pixel value (differential NDVI value) that is positive (plus) and setting a pixel value=0 for a differential pixel value that is equal to 0 or is negative (minus) is performed, and a binarized image including the binarized pixel values (binarized NDVI values) which are 0 or 1 is generated.
[0293] A binarized pixel value (binarized NDVI value) in the binarized image is 0 or 1, as previously explained with reference to (4b) in
[0294] In the binarized image generated by the binarization section 123, a portion having a binarized pixel value (binarized NDVI value)=1 can be assessed as a vegetation portion. On the other hand, a portion having a binarized pixel value (binarized NDVI value)=0 can be assessed as a soil portion.
[0295] (Step S106)
[0296] Next, at step S106, by using two inputted images which are the NDVI image generated at step S102 and the binarized image generated at step S105 by the binarization section 123, the image processing device 100 multiplies a pixel value in the NDVI image and a pixel value in the binarized image, and generates a multiplication image including the multiplication pixel value.
[0297] This step is executed by the multiplication section 124 of the NDVI image correcting section 102 depicted in
[0298] By using two inputted images which are the NDVI image generated at step S102 and the binarized image generated at step S105 by the binarization section 123, the multiplication section 124 multiplies a pixel value in the NDVI image and a pixel value in the binarized image, and generates a multiplication image.
[0299] A multiplied pixel value (multiplication NDVI value) which is a pixel value of each pixel constituting the multiplication image is as follows.
Multiplication pixel value (multiplication NDVI value) in the multiplication image=(pixel value (NDVI value) in the inputted NDVI image)×(binarized pixel value (binarized NDVI value) in the binarized image)
[0300] One example of the multiplication image generated as a result of the multiplication process at the multiplication section 124 is the (5a) multiplication image in
[0301] As previously explained with reference to (5b) in
[0302] That is, regarding each vegetation portion in the multiplication image, a pixel value (NDVI value) in the inputted original NDVI image 52 is reflected. Regarding each soil portion in the multiplication image, a pixel value (NDVI value)=0 is uniformly set.
[0303] The (5a) multiplication image in
[0304] In the (5a) multiplication image in
[0305] The vegetation region portion in the CD region on the lower right side of the (5a) multiplication image in
[0306] (Step S107)
[0307] Step S107 is executed by the multiplication image averaging section 125 of the NDVI image correcting section 102 depicted in
[0308] At step S107, the image processing device 100 performs the averaging process on the multiplication image generated at step S106, and generates an averaged multiplication image.
[0309] This step is executed by the multiplication image averaging section 125, as previously explained with reference to
[0310] The multiplication image averaging section 125 performs the averaging process on the multiplication image generated at step S106, excluding soil portions where a pixel value (NDVI pixel value)=0.
[0311] It is to be noted that, in the (5a) multiplication image in
[0312] Specifically, the following average pixel value calculating process is performed on each of the pixels in the (5a) multiplication image.
Average pixel value=(total pixel value of the pixels in the averaging process region)/(the number of pixels having a pixel value>0 in the averaging process region)
[0313] A specific process sequence thereof will be explained. First, the multiplication image averaging section 125 acquires the vegetation portion direction 71 and the vegetation portion interval 72 from the (5a) multiplication image in
[0314] Next, the multiplication image averaging section 125 performs the averaging process on pixel values (NDVI values) set for respective pixels in the (5a) multiplication image in
[0315] The average pixel value which is obtained by the averaging process is calculated in accordance with the following expression, as previously explained.
Average pixel value=(total pixel values of the pixels in the averaging process range)/(the number of pixels having a pixel value>0 in the averaging process range)
[0316] This pixel-based averaging process is performed on each of all the pixels constituting the (5a) multiplication image in
[0317] It is to be noted that, for a region where pixels cannot be selected in a vegetation portion interval centered on a process target pixel because the process target pixel is in an end region of the image, a process that is similar to that previously explained with reference to
[0318] In the abovementioned manner, an average pixel value of the pixel values (NDVI values) of a plurality of pixels that is arranged in a direction perpendicular to the vegetation portion direction and is included in a vegetation portion interval with respect to a process target pixel is calculated, and the calculated pixel value is set as a pixel value of the process target pixel.
[0319] The multiplication image averaging section 125 calculates an averaged multiplication pixel value of each of all the pixels in the (5a) multiplication image of
[0320] The averaged multiplication image generated by the multiplication image averaging section 125 includes index values indicating plant activities of vegetation portions only without any soil portion, that is, including NDVI values corresponding to vegetation portions only. The plant activity of each vegetation portion region can be surely discerned without the necessity of considering the existence of soil portions.
5. Hardware Configuration Example of Image Processing Device
[0321] Next, a hardware configuration example of an image processing device according to the present disclosure will be explained with reference to
[0322] A CPU (Central Processing Unit) 301 functions as a control section or a data processing section that executes various processes in accordance with a program stored in a ROM (Read Only Memory) 302 or a storage section 308. For example, the CPU 301 executes processes in accordance with the sequences that have been explained in the above embodiment. Data and a program to be executed by the CPU 301 are stored in a RAM (Random Access Memory) 303. The CPU 301, the ROM 302, and the RAM 303 are mutually connected via a bus 304.
[0323] The CPU 301 is connected to the input/output interface 305 via the bus 304. An input section 306 which includes switches, a keyboard, a mouse, a microphone, a sensor, or the like, and an output section 307 which includes a display, a loud speaker, or the like are connected to the input/output interface 305.
[0324] The CPU 301 executes various processes in response to commands inputted from the input section 306, and outputs the process results to the output section 307, for example.
[0325] A storage section 308 is connected to the input/output interface 305, and includes a hard disk, for example. Various types of data and a program to be executed by the CPU 301 are stored in the storage section 308. A communication section 309 functions as a transmission/reception section for Wi-Fi communication, Bluetooth (registered trademark) (BT) communication, or data communication over a network such as the Internet or a local area network, and communication with an external device.
[0326] A drive 310 which is connected to the input/output interface 305, drives a removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory such as a memory card, and executes data recording or data reading.
6. Conclusion of Configuration According to Present Disclosure
[0327] An embodiment of the present disclosure has been explained above in detail with reference to the particular embodiment. However, it is obvious that a person skilled in the art can make modification or substitution on the embodiment within the gist of the present disclosure. That is, the present invention has been disclosed in a form of exemplifications, and thus, should not be limitedly interpreted. In order to assess the gist of the present disclosure, the claims should be considered.
[0328] It is to be noted that the technology disclosed herein can have the following configurations.
[0329] (1) An image processing device including:
[0330] a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value is set as a pixel value and that generates a corrected image of the vegetation index value set image, the vegetation index value indicating a plant activity, in which
[0331] the vegetation index value set image correcting section [0332] calculates, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generates an averaged image in which the calculated average pixel values are set, [0333] generates a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and [0334] generates, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
[0335] (2) The image processing device according to (1), in which
[0336] the vegetation index value set image is an NDVI (Normalized Difference Vegetation Index) image in which an NDVI value is set as a pixel value.
[0337] (3) The image processing device according to (1) or (2), in which
[0338] the vegetation index value set image is generated on the basis of a camera image that includes a vegetation portion and a soil portion,
[0339] the vegetation index value set image correcting section includes an averaging section that generates the averaged image, and
[0340] the averaging section [0341] acquires a vegetation portion direction and a vegetation portion interval of the vegetation portion included in the vegetation index value set image, [0342] calculates, as the average pixel value of a process target pixel, an average value of pixel values of pixels that are arranged in a direction perpendicular to the vegetation portion direction and are disposed within the vegetation portion interval including the process target pixel, and [0343] generates the averaged image in which the average pixel values calculated for the respective pixels constituting the vegetation index value set image are set.
[0344] (4) The image processing device according to (3), in which
[0345] the vegetation portion interval is a pixel interval within which pixels corresponding to one vegetation portion line and pixels corresponding to one soil portion line are disposed, and
[0346] the averaging section calculates, as the average pixel value of the process target pixel, an average value of pixel values of pixels that are disposed within the vegetation portion interval including the process target pixel and that include pixels corresponding to one vegetation portion line and pixels corresponding to one soil portion line.
[0347] (5) The image processing device according to (3) or (4), in which
[0348] by performing image analysis on the vegetation index value set image, the averaging section acquires the vegetation portion direction and the vegetation portion interval of a vegetation portion included in the vegetation index value set image.
[0349] (6) The image processing device according to any one of (3) to (5), in which
[0350] from data inputted by a user, the averaging section acquires at least any of the vegetation portion direction or the vegetation portion interval.
[0351] (7) The image processing device according to any one of (1) to (6), in which
[0352] the vegetation index value set image correcting section includes a subtraction section that receives an input of the averaged image, and generates a difference image between the vegetation index value set image and the averaged image, and
[0353] the subtraction section subtracts a pixel value of each pixel in the averaged image from a pixel value of the corresponding pixel in the vegetation index value set image, and generates the difference image including pixel values obtained as the subtraction result.
[0354] (8) The image processing device according to any one of (1) to (7), in which
[0355] the vegetation index value set image is an NDVI (Normalized Difference Vegetation Index) image in which an NDVI value is set as a pixel value,
[0356] the NDVI value in the NDVI image ranges from 0.0 to 1.0, and
[0357] the difference image is a difference image between the NDVI image and the averaged image, and includes a pixel having a pixel value of 0 or greater and a pixel having a pixel value of 0 or less.
[0358] (9) The image processing device according to any one of (1) to (8), in which
[0359] the vegetation index value set image correcting section includes a binarization section that binarizes the difference image in accordance with a specified threshold, and generates a binarized image, and
[0360] the binarization section [0361] defines the specified threshold=0, and [0362] generates the binarized image in which a pixel value=1 is set for each pixel constituting the difference image and having a pixel value that is positive, and a pixel value=0 is set for each pixel constituting the difference image and having a pixel value that is equal to 0 or is negative.
[0363] (10) The image processing device according to any one of (1) to (9), in which
[0364] the vegetation index value set image correcting section includes a binarization section that binarizes the difference image in accordance with a specified threshold, and generates a binarized image, and
[0365] the binarization section generates the binarized image by using a value other than “0” as the prescribed threshold.
[0366] (11) The image processing device according to any one of (1) to (10), in which
[0367] the vegetation index value set image correcting section includes a multiplication section that generates the multiplication image by multiplying the vegetation index value set image and the binarized image, and
[0368] the multiplication section multiplies a pixel value of each pixel in the vegetation index value set image with a pixel value of the corresponding pixel in the binarized image, and generates a multiplication image including pixel values obtained as the multiplication result.
[0369] (12) The image processing device according to (11), in which
[0370] each pixel value in the binarized image is set to 0 or 1, and
[0371] the multiplication section multiplies a pixel value of each pixel in the vegetation index value set image with a pixel value of the corresponding pixel set to 0 or 1 in the binarized image, and generates the multiplication image including a pixel value that is equal to 0 and a pixel value reflecting the pixel value in the vegetation index value set image as the multiplication result.
[0372] (13) The image processing device according to (11) or (12), in which
[0373] the vegetation index value set image is generated on the basis of a camera image that includes a vegetation portion and a soil portion, and
[0374] the multiplication section generates the multiplication image in which a pixel value=0 is set in a soil portion region.
[0375] (14) The image processing device according to any one of (1) to (13), in which
[0376] the vegetation index value set image correcting section includes a multiplication image averaging section that performs an averaging process on the multiplication image, and
[0377] the multiplication image averaging section calculates, for each of pixels constituting the multiplication image, an average pixel value of the pixel and neighboring pixels, generates an averaged multiplication image in which the calculated average pixel values are set, and uses the generated averaged multiplication image as the corrected image of the vegetation index value set image.
[0378] (15) The image processing device according to (14), in which
[0379] the multiplication image averaging section generates the averaged multiplication image by [0380] generating an extracted vegetation portion image obtained by extracting, from the multiplication image, a vegetation portion region that is assessed as a vegetation portion only, [0381] acquiring a vegetation portion direction and a vegetation portion interval in the generated extracted vegetation portion image, [0382] calculating, as an average pixel value of a process target pixel, an average value of pixel values of pixels that are arranged in a direction perpendicular to the vegetation portion direction and are disposed within the vegetation portion interval including the process target pixel, and [0383] enlarging the extracted vegetation portion image to an image size of the vegetation index value set image after calculating the average pixel values of respective pixels constituting the multiplication image.
[0384] (16) An image processing method that is executed in an image processing device, the image processing device including a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value indicating a plant activity is set as a pixel value and that generates a corrected image of the vegetation index value set image, the method including:
[0385] causing the vegetation index value set image correcting section to [0386] calculate, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generate an averaged image in which the calculated average pixel values are set, [0387] generate a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and [0388] generate, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
[0389] (17) A program for causing an image processing device to execute image processing, the image processing device including a vegetation index value set image correcting section that receives an input of a vegetation index value set image in which a vegetation index value indicating a plant activity is set as a pixel value and that generates a corrected image of the vegetation index value set image, the program being configured to cause the vegetation index value set image correcting section to perform:
[0390] a process of calculating, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, and generating an averaged image in which the calculated average pixel values are set;
[0391] a process of generating a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold; and
[0392] a process of generating, as the corrected image of the vegetation index value set image, a multiplication image by multiplying the vegetation index value set image and the binarized image.
[0393] Further, a series of the processes explained herein can be executed by hardware, software, or a composite structure thereof. In a case where the processes are executed by software, a program having a sequence of the processes recorded therein can be executed after being installed into a memory of a computer incorporated in dedicated hardware, or can be executed after being installed into a general-purpose computer capable of various processes. For example, such a program may be previously recorded in a recording medium. The program can be installed into the computer from the recording medium. Alternatively, the program can be received over a network such as a LAN (Local Area Network) or the Internet, and can be installed into a recording medium such as an internal hard disk.
[0394] It is to be noted that the processes described herein are not necessarily executed in the described time-series order, and the processes may be executed parallelly or separately, as needed or in accordance with the processing capacity of a device to execute the processes. Further, in the present description, a system refers to a logical set structure including a plurality of devices, and the devices in the structure are not necessarily included in the same casing.
INDUSTRIAL APPLICABILITY
[0395] According to the configuration of one embodiment of the present disclosure, a device and a method of generating and outputting a corrected image including a high-precision vegetation index value such as an NDVI value in a vegetation portion region on the basis of an image in which a vegetation portion and a soil portion coexist are implemented, as explained so far.
[0396] Specifically, the device includes a vegetation index value set image correcting section that generates a corrected image of a vegetation index value set image in which a vegetation index value such as an NDVI value is set as a pixel value, for example. The vegetation index value set image correcting section calculates, for each of pixels constituting the vegetation index value set image, an average pixel value of the pixel and neighboring pixels, generates an averaged image in which the average pixel value is set, generates a binarized image by binarizing a difference image between the vegetation index value set image and the averaged image in accordance with a specified threshold, and generates, as the corrected image of the vegetation index value set image, a multiplication image of the vegetation index value set image and the binarized image.
[0397] With this configuration, a device and a method of generating and outputting a corrected image including a high-precision vegetation index value such as an NDVI value in a vegetation portion region on the basis of an image in which the vegetation portion and a soil portion coexist, are implemented.
REFERENCE SIGNS LIST
[0398] 10: Drone [0399] 11: Camera [0400] 20: Poor growth region [0401] 51: Captured image [0402] 52: NDVI image [0403] 53: Output image (corrected NDVI image) [0404] 71: Vegetation portion direction [0405] 72: Vegetation portion interval [0406] 81, 91: Averaging process target pixel [0407] 100: Image processing device [0408] 101: NDVI image generating section [0409] 102: NDVI image correcting section [0410] 103: Image displaying section [0411] 121: Averaging section [0412] 122: Subtraction section [0413] 123: Binarization section [0414] 124: Multiplication section [0415] 125: Multiplication image averaging section [0416] 301: CPU [0417] 302: ROM [0418] 303: RAM [0419] 304: Bus [0420] 305: Input/output interface [0421] 306: Input section [0422] 307: Output section [0423] 308: Storage section [0424] 309: Communication section [0425] 310: Drive [0426] 311: Removable medium