Skip to content

Modify all functions to use Image/GEO/DSM subclasses instead of spectral objects #110

@k034b363

Description

@k034b363

My suggestion for tackling these would to create a pickled GEO or DSM object to use for testing, start with modifying some of the simpler functions and work backwards toward the read functions. Maybe?

  1. Read functions - will need to create objects
    • read.geotif
    • read.netcdf
  2. Shape creation functions
    • auto_grid - just needed for attributes and debug
    • grid_from_coords - just needed for attributes and debug
    • InteractiveShapes class - will need changes throughout
  3. Conversion functions - I think all will just be changes to accessing attributes and debug images
    • points
    • shapes
    • to_roi
  4. Analysis functions - I think these all currently pass the spectral_object.array_data to rasterstats, so maybe will be simple
    • color - uses zonal stats after separating channels and doing colorspace conversion
    • coverage - only passes the binary mask to rasterstats, image is only used for metadata and debug
    • spectral - this one might be more complicated, uses a real spectral object created by plantcv. Might just need a wrapper for the pcv.spectral_index functions that takes our image class and returns an actual spectral object. Or returns another geo image?
    • height_percentile - both height functions use the array_data directly
    • height_subtraction
  5. Helpers
    • _transform_geojson_crs
    • _show_geojson
    • _plot_bounds_pseudocolored
  6. Others
    • transform_polygons
    • center_grid_rois

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions