Commit 24681a1
committed
Accept "ignore" keyword for bad/non-data values in rendering functions.
If the "ignore" keyword value is specified, the corresponding value will not
be used for calculating RGB limits for default color limits or user-specified
histogram stretches. This is useful when bad pixels are assigned a unique data
value.
* algorithsm/spymath.py:
(get_histogram_cdf_points): Accept "ignore" keyword.
* graphics/graphics.py:
(get_rgb_meta): Pass "ignore" ignore keyword on to `get_histogram_cdf_points`.
_get_rgb_kwargs: Add "ignore" to list of accepted keywords.1 parent 4ff45d8 commit 24681a1
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| 111 | + | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
108 | | - | |
| 116 | + | |
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| 690 | + | |
690 | 691 | | |
691 | 692 | | |
692 | | - | |
| 693 | + | |
| 694 | + | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | | - | |
| 698 | + | |
| 699 | + | |
697 | 700 | | |
698 | 701 | | |
699 | 702 | | |
700 | 703 | | |
701 | | - | |
| 704 | + | |
| 705 | + | |
702 | 706 | | |
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
709 | | - | |
| 713 | + | |
| 714 | + | |
710 | 715 | | |
711 | 716 | | |
712 | | - | |
| 717 | + | |
| 718 | + | |
713 | 719 | | |
714 | 720 | | |
715 | 721 | | |
| |||
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
733 | | - | |
| 739 | + | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
| |||
0 commit comments