Double Mask

Issue #2 resolved
Tyler W. Davis created an issue

Try applying a second mask to the image processes.

  1. Take the standard deviation of the image sequence (as was previously thought for determining boundaries), scale the values to 0--255, and threshold to create a mask of pixels with high variability; the thought is that the mesh doesn't move, so it may masked by this approach. This mask is used for each image in the sequence.

  2. Use the color mask that is currently created for each individual image in the sequence

Comments (6)

  1. Tyler W. Davis reporter

    Positional mask seems not to work due to the plant being in both images.

    TODO: try imaging a mesh tower without a plant to create a background image that could be subtracted from images with both mesh and plant

  2. Tyler W. Davis reporter

    Try this:

    img = imopen(my_file)
    cmax = numpy.max(img, 2)
    cmin = numpy.min(img, 2)    # looks a lot like blue channel
    delta = (cmax - cmin)       # highlights mesh over roots
    cmin_bin = threshold(cmin)
    delta_bin = threshold(delta)
    mask = (cmin_bin != delta_bin) & cmin_bin 
    
  3. Tyler W. Davis reporter

    v0.8.0. Addresses #1 - new delta mask does a better job of removing mesh from some sequences. Addresses #2 - delta mask replaces positional mask, which performed poorly.

    → <<cset 8216a3692437>>

  4. Tyler W. Davis reporter

    Two imaging masks are currently implemented (color and delta) and both can be used simultaneously, resulting in a third mask defined by their union.

  5. Log in to comment