Skip to content

Commit

Permalink
Fix capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Courroux committed Mar 27, 2024
1 parent 0c9a509 commit 1f21ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micasense/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def save_capture_as_stack(self, outfilename, sort_by_wavelength=False, photometr

for outband_count, inband in enumerate(eo_list):
outband = outRaster.GetRasterBand(outband_count + 1)
outdata = self.__aligned_capture[:, :, inband]
outdata = aligned_cap[:, :, inband]
outdata[outdata < 0] = 0
outdata[outdata > 2] = 2 # limit reflectance data to 200% to allow some specular reflections
outdata = outdata * 32767 # scale reflectance images so 100% = 32768
Expand Down

0 comments on commit 1f21ce9

Please sign in to comment.