Skip to content

Commit

Permalink
Merge pull request #217 from micasense/bug/remove-normalization
Browse files Browse the repository at this point in the history
Fix capture
  • Loading branch information
sebc06 authored Mar 27, 2024
2 parents c47410f + 1f21ce9 commit 3a90386
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 3a90386

Please sign in to comment.