summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrakenrf <carl@system76-pc.localdomain>2022-10-28 08:06:15 +0200
committerkrakenrf <carl@system76-pc.localdomain>2022-10-28 08:06:15 +0200
commita23adef080e817aa739f57f5ce52fa8d6b491177 (patch)
tree162f9377cce9a4a233d4cc0646f20872333d4294
parentgraph enhancements (diff)
downloadkrakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar.gz
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar.bz2
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar.lz
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar.xz
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.tar.zst
krakensdr_pr-a23adef080e817aa739f57f5ce52fa8d6b491177.zip
-rwxr-xr-x_UI/_web_interface/kraken_web_interface.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/_UI/_web_interface/kraken_web_interface.py b/_UI/_web_interface/kraken_web_interface.py
index ba85079..4f3b11e 100755
--- a/_UI/_web_interface/kraken_web_interface.py
+++ b/_UI/_web_interface/kraken_web_interface.py
@@ -1276,7 +1276,7 @@ def plot_pr():
valueMax = np.amax(CAFMatrix)
valueMin = np.amin(CAFMatrix)
- CAFMatrix = CAFMatrix - valueMin / (valueMax - valueMin)
+ #CAFMatrix = CAFMatrix - valueMin / (valueMax - valueMin)
if webInterface_inst.CAFMatrixPersist is None or webInterface_inst.CAFMatrixPersist.shape != CAFMatrix.shape or not webInterface_inst.en_persist:
webInterface_inst.CAFMatrixPersist = CAFMatrix
@@ -1291,6 +1291,13 @@ def plot_pr():
CAFDynRange = webInterface_inst.pr_dynamic_range_max
CAFMatrixLog[CAFMatrixLog > CAFDynRange] = CAFDynRange
+ #youssef_color_map = ['#000020', '#000030', '#000050', '#000091', '#1E90FF', '#FFFFFF', '#FFFF00', '#FE6D16', '#FE6D16', '#FF0000',
+ # '#FF0000', '#C60000', '#9F0000', '#750000', '#4A0000']
+
+ #color_map = colors.ListedColormap(youssef_color_map)
+ scalarMap = cm.ScalarMappable(cmap=color_map)
+
+
CAFMatrixLog = resize(CAFMatrixLog,(1024,1024),order=1, anti_aliasing=True)
seg_colors = scalarMap.to_rgba(CAFMatrixLog)
img = Image.fromarray(np.uint8(seg_colors*255))