[PublicLab] Question: NDVI Image Captures Non-Plant Objects (#24118)

1 view
Skip to first unread message

notifi...@publiclab.org

unread,
Jul 13, 2020, 9:24:55 AM7/13/20
to notifi...@publiclab.org

Public Lab contributor velahs just asked a question entitled 'NDVI Image Captures Non-Plant Objects':

Help them by posting an answer here: https://publiclab.org/questions/velahs/07-08-2020/ndvi-image-captures-non-plant-objects


Hello everyone,

I figured I should give an elaborate background of why I am using NDVI and how I am processing my images before I get to my questions, so here goes. If you are not interested in all this detail, please skip ahead to the bulleted list near the end subtitled 'My questions'.

An introduction about my project before I ask a few questions:

My research team and I are developing an inexpensive sensor that will automatically detect changes in phenotypes of plants due to environmental stressors. We are doing so with the use of a Raspberry Pi Zero W, along with the Raspberry Pi Camera V2 and the Raspberry Pi Camera NoIR V2. One of our primary goals is that our product should be easy to use and setup for all kinds of people and professions. Furthermore, it is important that it the image acquisition and analysis processes are automated so that, for example, if a fungal infection were to occur in a plant, it would alert the owner of this risk in order for them to prevent an outbreak.

My goals for NDVI:

Because we require a large degree of automation, we need to write a workflow that will be able to tell which objects in an image are the plants that we wish to analyze, and which are not. This should be done without the need for any user input. After some research online, it seems like NDVI is the perfect tool to do so! So, I need my NDVI images to accurately pick out plant objects and nothing else. Although, if it keeps a few non-plant pixels, I will not be too concerned.

My setup:

I currently have my VIS camera outdoors (in a waterproof box) pointing at a mint plant. My NIR camera is pointing at the same plant, but at a 90˚ angle to the VIS camera. The NIR camera has a blue filter on the outside of it, which came with the camera. I believe this is the Rosco #2007 filter, but I could be wrong. Currently, I am creating NDVI images using the one NIR camera by treating the 'R' channel as NIR light, and the 'B' channel as VIS light.

My process:

I tried manually changing the white balance values of my camera, but this best value I came up with seems to be about (1.18, 0.74). I am not changing the exposure or ISO. Here is an image taken with these settings. (You can also see another bush in the background)

image description****____

****____

I am doing the image processing in Python. Here is how my workflow goes:

  • I iterate over each pixel in the image. Each pixel gets assigned an NDVI value equal to (R-B)/(R+B)
  • The NDVI values are on the interval [-1, 1], so I map them to the interval [0, 255] so each pixel gets a grayscale value, which I make an image out of.
  • Then, I am using the cfastie LUT to map these grayscale values to (R, G, B) values to get an NDVI image with colour.

Here are the grayscale and coloured NDVI images corresponding to the above image.

image description****____

image description****____

****____

**

The problems:
**

As you can see, there are many objects in the image that are being assigned vegetation NDVI values which do not actually have photosynthesis activity. Additionally, the mint plant itself does not seem to have as high an NDVI value as I would expect. For example, I imagine it should probably be yellow for the most part instead of green.

Evidently this workflow is functioning to some degree, as the plant is clearly highlighted, but as stated above, I need a higher degree of accuracy in order to use this function long-term.


**

My questions:

  • Are other non-plant objects likely being assigned higher NDVI values due to NIR light bleeding into the 'B' channel?

  • Would a red filter instead of a blue one largely fix this problem?

  • As you can see in the grayscale, there really is not much contrast in NDVI values overall. They all seem to be within a close range to 0. Why is this the case, and how could I improve this?

  • If I were instead to try creating an NDVI image using a 2 camera setup, where 1 camera is VIS and 1 is NIR, which channels do I use to compute the NDVI value of each pixel? For example, should I simply use the 'R' channel on the VIS camera, and the 'R' (i.e. NIR) channel on the NIR camera with the same blue filter?

  • Would having targets with known reflectance help to eliminate this problem? Or would it not be enough on its own?

Thank you for reading through my whole post and I thank you all in advance for your input. I am very excited about getting NDVI working as I think it is an incredibly powerful tool that has yet to see its full potential in automated field phenomics.


You received this email because you are subscribed to some or all of the following tags: infragram,question:infragram,raspberrypi,first-time-poster,bluefilter,automatedfieldphenomics.

Subscribe to all the tags for this post by visiting https://publiclab.org/subscribe/multiple/tag/infragram,question:infragram,raspberrypi,first-time-poster,bluefilter,automatedfieldphenomics.

To change your preferences, please visit https://publiclab.org/subscriptions.

Report spam and abuse to: moder...@publiclab.org

Check out the blog at https://publiclab.org/blog | Love our work? Become a Public Lab Sustaining Member today at https://publiclab.org/donate If this email title has an ID in the format #0000, you can reply with the email you use at PublicLab.org and your response will be posted as a comment on the website.
Reply all
Reply to author
Forward
0 new messages