From: Perry G. <pe...@st...> - 2005-02-10 01:21:12
|
John Hunter wrote: > > Perry> Secondly, this example asks for a threshold based on > Perry> prenormalized data values (i.e., image value of 30). To get > Perry> what the user wants, the user must either define the alpha > Perry> map to match the normalized value of 30 or normalize the > Perry> data to match 30 to the alpha map threshold. It's not so > Perry> obvious to me how this is best handled. A fancier > Perry> normalization function that uses data-based thresholds to > Perry> map to color map thresholds? Otherwise, it may be fairly > Perry> painful to apply in practice. A convenient way to define a > Perry> color map based on data values and how the data will be > Perry> normalized? > > I'll think about these issues -- gotta run now. But they are > orthogonal to having an alpha channel in the colormap, no? > Well, yes and no. Yes in that this can be implemented without dealing with the issue, no in that it may not be easily used by just dealing with that. This has come up before and it makes me think that some tool (I'm thinking about an optional argument to normalize or something defining a correspondence between a data value and a normalized value) is needed to address that, and there are a number of different approaches that could be taken. I was just wondering if you had any thoughts about the best way to do that. Perry |