<gh_stars>1-10
import numpy as np
from matplotlib.colors import ListedColormap


def psf_lut():
    """
    PSF LUT created by <NAME> Fiji.
    """
    colors = [
        [255, 0, 0],
        [249, 5, 2],
        [243, 10, 4],
        [237, 16, 6],
        [231, 21, 8],
        [226, 26, 10],
        [220, 32, 13],
        [214, 37, 15],
        [208, 42, 17],
        [203, 48, 19],
        [197, 53, 21],
        [191, 59, 24],
        [185, 64, 26],
        [180, 69, 28],
        [174, 75, 30],
        [168, 80, 32],
        [162, 85, 35],
        [157, 91, 37],
        [151, 96, 39],
        [145, 101, 41],
        [139, 107, 43],
        [134, 112, 46],
        [128, 118, 48],
        [122, 123, 50],
        [116, 128, 52],
        [111, 134, 54],
        [105, 139, 57],
        [99, 144, 59],
        [93, 150, 61],
        [88, 155, 63],
        [82, 160, 65],
        [76, 166, 68],
        [70, 171, 70],
        [65, 177, 72],
        [59, 182, 74],
        [53, 187, 76],
        [47, 193, 79],
        [42, 198, 81],
        [36, 203, 83],
        [30, 209, 85],
        [24, 214, 87],
        [19, 219, 91],
        [19, 218, 91],
        [19, 218, 92],
        [20, 217, 93],
        [20, 216, 93],
        [20, 215, 94],
        [20, 214, 95],
        [20, 214, 95],
        [20, 213, 96],
        [21, 212, 97],
        [21, 211, 97],
        [21, 210, 98],
        [21, 210, 98],
        [21, 209, 99],
        [22, 208, 100],
        [22, 207, 100],
        [22, 206, 101],
        [22, 206, 102],
        [22, 205, 102],
        [22, 204, 103],
        [23, 203, 104],
        [23, 202, 104],
        [23, 201, 105],
        [23, 201, 106],
        [23, 200, 106],
        [24, 199, 107],
        [24, 198, 108],
        [24, 197, 108],
        [24, 197, 109],
        [24, 196, 109],
        [24, 195, 110],
        [25, 194, 111],
        [25, 193, 111],
        [25, 193, 112],
        [25, 192, 113],
        [25, 191, 113],
        [26, 190, 114],
        [26, 189, 115],
        [26, 189, 115],
        [26, 188, 116],
        [26, 187, 117],
        [26, 186, 117],
        [27, 185, 118],
        [27, 184, 119],
        [27, 184, 119],
        [27, 183, 120],
        [27, 182, 120],
        [28, 181, 121],
        [28, 180, 122],
        [28, 180, 122],
        [28, 179, 123],
        [28, 178, 124],
        [28, 177, 124],
        [29, 176, 125],
        [29, 176, 126],
        [29, 175, 126],
        [29, 174, 127],
        [29, 173, 128],
        [30, 172, 128],
        [30, 172, 129],
        [30, 171, 130],
        [30, 170, 130],
        [30, 169, 131],
        [30, 168, 131],
        [31, 167, 132],
        [31, 167, 133],
        [31, 166, 133],
        [31, 165, 134],
        [31, 164, 135],
        [32, 163, 135],
        [32, 163, 136],
        [32, 162, 137],
        [32, 161, 137],
        [32, 160, 138],
        [32, 159, 139],
        [33, 159, 139],
        [33, 158, 140],
        [33, 157, 141],
        [33, 156, 141],
        [33, 155, 142],
        [34, 153, 143],
        [35, 152, 143],
        [35, 151, 143],
        [36, 150, 143],
        [37, 149, 143],
        [37, 148, 143],
        [38, 147, 143],
        [39, 146, 143],
        [39, 145, 143],
        [40, 144, 143],
        [41, 143, 144],
        [41, 142, 144],
        [42, 141, 144],
        [42, 140, 144],
        [43, 139, 144],
        [44, 138, 144],
        [44, 137, 144],
        [45, 136, 144],
        [46, 135, 144],
        [46, 134, 144],
        [47, 133, 145],
        [48, 132, 145],
        [48, 131, 145],
        [49, 130, 145],
        [49, 128, 145],
        [50, 127, 145],
        [51, 126, 145],
        [51, 125, 145],
        [52, 124, 145],
        [53, 123, 145],
        [53, 122, 146],
        [54, 121, 146],
        [55, 120, 146],
        [55, 119, 146],
        [56, 118, 146],
        [57, 117, 146],
        [57, 116, 146],
        [58, 115, 146],
        [58, 114, 146],
        [59, 113, 146],
        [60, 112, 146],
        [60, 111, 147],
        [61, 110, 147],
        [62, 109, 147],
        [62, 108, 147],
        [63, 107, 147],
        [64, 106, 147],
        [64, 105, 147],
        [65, 103, 147],
        [65, 102, 147],
        [66, 101, 147],
        [67, 100, 148],
        [67, 99, 148],
        [68, 98, 148],
        [69, 97, 148],
        [69, 96, 148],
        [70, 95, 148],
        [71, 94, 148],
        [71, 93, 148],
        [72, 92, 148],
        [72, 91, 148],
        [73, 90, 149],
        [74, 89, 149],
        [74, 88, 149],
        [75, 87, 149],
        [76, 86, 149],
        [76, 85, 149],
        [77, 84, 149],
        [78, 83, 149],
        [78, 82, 149],
        [79, 81, 149],
        [85, 85, 85],
        [87, 87, 87],
        [90, 90, 90],
        [93, 93, 93],
        [96, 96, 96],
        [99, 99, 99],
        [102, 102, 102],
        [105, 105, 105],
        [108, 108, 108],
        [111, 111, 111],
        [114, 114, 114],
        [117, 117, 117],
        [120, 120, 120],
        [123, 123, 123],
        [126, 126, 126],
        [129, 129, 129],
        [132, 132, 132],
        [135, 135, 135],
        [138, 138, 138],
        [141, 141, 141],
        [144, 144, 144],
        [147, 147, 147],
        [150, 150, 150],
        [153, 153, 153],
        [156, 156, 156],
        [158, 158, 158],
        [161, 161, 161],
        [164, 164, 164],
        [167, 167, 167],
        [169, 169, 169],
        [172, 172, 172],
        [175, 175, 175],
        [178, 178, 178],
        [180, 180, 180],
        [183, 183, 183],
        [186, 186, 186],
        [189, 189, 189],
        [191, 191, 191],
        [194, 194, 194],
        [197, 197, 197],
        [200, 200, 200],
        [202, 202, 202],
        [205, 205, 205],
        [208, 208, 208],
        [211, 211, 211],
        [213, 213, 213],
        [216, 216, 216],
        [219, 219, 219],
        [222, 222, 222],
        [224, 224, 224],
        [227, 227, 227],
        [230, 230, 230],
        [233, 233, 233],
        [235, 235, 235],
        [238, 238, 238],
        [241, 241, 241],
        [244, 244, 244],
        [246, 246, 246],
        [249, 249, 249],
        [252, 252, 252],
        [255, 255, 255],
        [255, 255, 255],
        [255, 255, 255],
        [255, 255, 255],
    ]
    colors = np.array(colors) / 255
    return ListedColormap(colors[::-1], colors)

import numpy as np
from matplotlib.colors import ListedColormap


def psf_lut():
    """
    PSF LUT created by <NAME> Fiji.
    """
    colors = [
        [255, 0, 0],
        [249, 5, 2],
        [243, 10, 4],
        [237, 16, 6],
        [231, 21, 8],
        [226, 26, 10],
        [220, 32, 13],
        [214, 37, 15],
        [208, 42, 17],
        [203, 48, 19],
        [197, 53, 21],
        [191, 59, 24],
        [185, 64, 26],
        [180, 69, 28],
        [174, 75, 30],
        [168, 80, 32],
        [162, 85, 35],
        [157, 91, 37],
        [151, 96, 39],
        [145, 101, 41],
        [139, 107, 43],
        [134, 112, 46],
        [128, 118, 48],
        [122, 123, 50],
        [116, 128, 52],
        [111, 134, 54],
        [105, 139, 57],
        [99, 144, 59],
        [93, 150, 61],
        [88, 155, 63],
        [82, 160, 65],
        [76, 166, 68],
        [70, 171, 70],
        [65, 177, 72],
        [59, 182, 74],
        [53, 187, 76],
        [47, 193, 79],
        [42, 198, 81],
        [36, 203, 83],
        [30, 209, 85],
        [24, 214, 87],
        [19, 219, 91],
        [19, 218, 91],
        [19, 218, 92],
        [20, 217, 93],
        [20, 216, 93],
        [20, 215, 94],
        [20, 214, 95],
        [20, 214, 95],
        [20, 213, 96],
        [21, 212, 97],
        [21, 211, 97],
        [21, 210, 98],
        [21, 210, 98],
        [21, 209, 99],
        [22, 208, 100],
        [22, 207, 100],
        [22, 206, 101],
        [22, 206, 102],
        [22, 205, 102],
        [22, 204, 103],
        [23, 203, 104],
        [23, 202, 104],
        [23, 201, 105],
        [23, 201, 106],
        [23, 200, 106],
        [24, 199, 107],
        [24, 198, 108],
        [24, 197, 108],
        [24, 197, 109],
        [24, 196, 109],
        [24, 195, 110],
        [25, 194, 111],
        [25, 193, 111],
        [25, 193, 112],
        [25, 192, 113],
        [25, 191, 113],
        [26, 190, 114],
        [26, 189, 115],
        [26, 189, 115],
        [26, 188, 116],
        [26, 187, 117],
        [26, 186, 117],
        [27, 185, 118],
        [27, 184, 119],
        [27, 184, 119],
        [27, 183, 120],
        [27, 182, 120],
        [28, 181, 121],
        [28, 180, 122],
        [28, 180, 122],
        [28, 179, 123],
        [28, 178, 124],
        [28, 177, 124],
        [29, 176, 125],
        [29, 176, 126],
        [29, 175, 126],
        [29, 174, 127],
        [29, 173, 128],
        [30, 172, 128],
        [30, 172, 129],
        [30, 171, 130],
        [30, 170, 130],
        [30, 169, 131],
        [30, 168, 131],
        [31, 167, 132],
        [31, 167, 133],
        [31, 166, 133],
        [31, 165, 134],
        [31, 164, 135],
        [32, 163, 135],
        [32, 163, 136],
        [32, 162, 137],
        [32, 161, 137],
        [32, 160, 138],
        [32, 159, 139],
        [33, 159, 139],
        [33, 158, 140],
        [33, 157, 141],
        [33, 156, 141],
        [33, 155, 142],
        [34, 153, 143],
        [35, 152, 143],
        [35, 151, 143],
        [36, 150, 143],
        [37, 149, 143],
        [37, 148, 143],
        [38, 147, 143],
        [39, 146, 143],
        [39, 145, 143],
        [40, 144, 143],
        [41, 143, 144],
        [41, 142, 144],
        [42, 141, 144],
        [42, 140, 144],
        [43, 139, 144],
        [44, 138, 144],
        [44, 137, 144],
        [45, 136, 144],
        [46, 135, 144],
        [46, 134, 144],
        [47, 133, 145],
        [48, 132, 145],
        [48, 131, 145],
        [49, 130, 145],
        [49, 128, 145],
        [50, 127, 145],
        [51, 126, 145],
        [51, 125, 145],
        [52, 124, 145],
        [53, 123, 145],
        [53, 122, 146],
        [54, 121, 146],
        [55, 120, 146],
        [55, 119, 146],
        [56, 118, 146],
        [57, 117, 146],
        [57, 116, 146],
        [58, 115, 146],
        [58, 114, 146],
        [59, 113, 146],
        [60, 112, 146],
        [60, 111, 147],
        [61, 110, 147],
        [62, 109, 147],
        [62, 108, 147],
        [63, 107, 147],
        [64, 106, 147],
        [64, 105, 147],
        [65, 103, 147],
        [65, 102, 147],
        [66, 101, 147],
        [67, 100, 148],
        [67, 99, 148],
        [68, 98, 148],
        [69, 97, 148],
        [69, 96, 148],
        [70, 95, 148],
        [71, 94, 148],
        [71, 93, 148],
        [72, 92, 148],
        [72, 91, 148],
        [73, 90, 149],
        [74, 89, 149],
        [74, 88, 149],
        [75, 87, 149],
        [76, 86, 149],
        [76, 85, 149],
        [77, 84, 149],
        [78, 83, 149],
        [78, 82, 149],
        [79, 81, 149],
        [85, 85, 85],
        [87, 87, 87],
        [90, 90, 90],
        [93, 93, 93],
        [96, 96, 96],
        [99, 99, 99],
        [102, 102, 102],
        [105, 105, 105],
        [108, 108, 108],
        [111, 111, 111],
        [114, 114, 114],
        [117, 117, 117],
        [120, 120, 120],
        [123, 123, 123],
        [126, 126, 126],
        [129, 129, 129],
        [132, 132, 132],
        [135, 135, 135],
        [138, 138, 138],
        [141, 141, 141],
        [144, 144, 144],
        [147, 147, 147],
        [150, 150, 150],
        [153, 153, 153],
        [156, 156, 156],
        [158, 158, 158],
        [161, 161, 161],
        [164, 164, 164],
        [167, 167, 167],
        [169, 169, 169],
        [172, 172, 172],
        [175, 175, 175],
        [178, 178, 178],
        [180, 180, 180],
        [183, 183, 183],
        [186, 186, 186],
        [189, 189, 189],
        [191, 191, 191],
        [194, 194, 194],
        [197, 197, 197],
        [200, 200, 200],
        [202, 202, 202],
        [205, 205, 205],
        [208, 208, 208],
        [211, 211, 211],
        [213, 213, 213],
        [216, 216, 216],
        [219, 219, 219],
        [222, 222, 222],
        [224, 224, 224],
        [227, 227, 227],
        [230, 230, 230],
        [233, 233, 233],
        [235, 235, 235],
        [238, 238, 238],
        [241, 241, 241],
        [244, 244, 244],
        [246, 246, 246],
        [249, 249, 249],
        [252, 252, 252],
        [255, 255, 255],
        [255, 255, 255],
        [255, 255, 255],
        [255, 255, 255],
    ]
    colors = np.array(colors) / 255
    return ListedColormap(colors[::-1], colors)
PSF LUT created by <NAME> Fiji.