Ignore:
Timestamp:
02/08/12 19:08:00 (8 years ago)
Author:
aivar
Message:

SLIM Plugin: Got multiple channel fitting working.

Location:
trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/HistogramData.java

    r7879 r7887  
    6161        _listener = listener; 
    6262    } 
    63      
     63      
    6464    /** 
    6565     * Gets a descriptive title to display on histogram UI for this data. 
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/HistogramDataChannel.java

    r7845 r7887  
    3030    public HistogramDataChannel(double[][] values) { 
    3131        _values = values; 
     32    } 
     33 
     34    /** 
     35     * Gets the values array. 
     36     *  
     37     * @return  
     38     */ 
     39    public double[][] getValues() { 
     40        return _values; 
    3241    } 
    3342 
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/UIPanel.java

    r7879 r7887  
    121121            } 
    122122        ); 
    123         if (hasChannels) { 
     123        /** 
     124         * IJ1 uses the same LUT for the entire stack.  It might be possible for 
     125         * the histogram tool to set the appropriate LUT for the current channel 
     126         * but there is no listener or event for the histogram tool to know when 
     127         * the channel changes. 
     128         *  
     129         * Perhaps this can change with IJ2. 
     130         *  
     131         * ARG 2/8/12 
     132         */ 
     133        if (false && hasChannels) { 
    124134            add(_combineChannelsCheckBox); 
    125135        } 
     
    137147            } 
    138148        ); 
    139         if (hasChannels) { 
     149        /** 
     150         * Now that we're down to one extra checkbox for channels, lets always 
     151         * display it.  (See above.) 
     152         *  
     153         * ARG 2/8/12 
     154         */ 
     155        if (true || hasChannels) { 
    140156            add(_displayChannelsCheckBox); 
    141157        } 
     
    176192     */ 
    177193    public void dragMinMaxLUT(double min, double max) { 
    178         System.out.println("UIPanel.dragMinMaxLUT " + min + " " + max); 
     194//        System.out.println("UIPanel.dragMinMaxLUT " + min + " " + max); 
    179195        showMinMaxLUT(min, max); 
    180196    } 
     
    187203     */ 
    188204    public void setMinMaxLUT(double min, double max) { 
    189         System.out.println("UIPanel.setMinMaxLUT " + min + " " + max); 
     205//        System.out.println("UIPanel.setMinMaxLUT " + min + " " + max); 
    190206        showMinMaxLUT(min, max); 
    191207        //TODO anything else?  if not combine these two methods 
Note: See TracChangeset for help on using the changeset viewer.