Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleySchuhl committed Apr 15, 2024
1 parent a79ee6f commit 24c5ac0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plantcv/geospatial/read_geotif.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import rasterio
import numpy as np
from plantcv.plantcv import fatal_error
from plantcv.plantcv.hyperspectral.read_data import _make_pseudo_rgb
from plantcv.plantcv.plot_image import plot_image
from plantcv.plantcv.classes import Spectral_data

Expand Down Expand Up @@ -58,11 +59,6 @@ def read_geotif(filename, bands="R,G,B"):
wavelength_units="nm", array_type="datacube",
pseudo_rgb=None, filename=filename, default_bands=None)

# Make pseudo RGB image for visualization
pseudo_rgb = spectral_array.array_data[:, :, :3]
pseudo_rgb = pseudo_rgb ** (1 / 2.2)
spectral_array.pseudo_rgb = pseudo_rgb

pseudo_rgb = _make_pseudo_rgb(spectral_array)
pseudo_rgb = pseudo_rgb.astype('float32')
plot_image(img=pseudo_rgb) # Replace with _debug
Expand Down

0 comments on commit 24c5ac0

Please sign in to comment.