PyOPIA 1.1.2__tar.gz → 1.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PyOPIA might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOPIA
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: A Python Ocean Particle Image Analysis toolbox.
5
5
  Home-page: https://github.com/sintef/pyopia
6
6
  Keywords: Ocean,Particles,Imaging,Measurement,Size distribution
@@ -0,0 +1 @@
1
+ __version__ = '1.1.3'
@@ -427,9 +427,10 @@ def statextract(imbw, timestamp, imc,
427
427
  if not len(s) == 3:
428
428
  imref = np.copy(imc)
429
429
  imc = np.zeros((np.shape(imc)[0], np.shape(imc)[1], 3), dtype=np.uint8)
430
- imc[:, :, 0] = imref
431
- imc[:, :, 1] = imref
432
- imc[:, :, 2] = imref
430
+ # Convert from floats in [0, 1] to ints in [0, 255]
431
+ imc[:, :, 0] = 255 * imref
432
+ imc[:, :, 1] = 255 * imref
433
+ imc[:, :, 2] = 255 * imref
433
434
  print('WARNING. exportparticles temporarily modified for 2-d images without color!')
434
435
 
435
436
  stats = extract_particles(imc, timestamp, Classification, region_properties,
@@ -1 +0,0 @@
1
- __version__ = '1.1.2'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes