Skip to content

Commit f2c182a

Browse files
committed
Add Javadoc to Pseudocolor
Hopefully others find it easier to understand now that there's some explanation
1 parent 7d3fa08 commit f2c182a

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@
4949
import java.util.function.Function;
5050

5151
/**
52-
* Generates a pseudocolored image of FLIM fit results
52+
* Generates an HSV pseudocolored image of FLIM fit results, where for each
53+
* pixel:
54+
* <ul>
55+
* <li>The Hue is a function of the lifetime fit parameters</li>
56+
* <li>The Value is a function of the initial intensity fit parameters</li>
57+
* </ul>
5358
*
5459
* @implNote op names="flim.pseudocolor"
5560
* @author Dasong Gao
@@ -71,19 +76,23 @@ public class Pseudocolor implements
7176
@OpDependency(name = "transform.permuteView")
7277
Functions.Arity3<RandomAccessibleInterval<FloatType>, Integer, Integer, RandomAccessibleInterval<FloatType>> permuter;
7378

74-
@OpDependency(name = "stats.mean")
75-
Function<IterableInterval<FloatType>, FloatType> meaner;
76-
7779
@OpDependency(name = "stats.percentile")
7880
BiFunction<IterableInterval<FloatType>, Float, FloatType> percentiler;
7981

8082
/**
81-
* @param rslt
82-
* @param cMin
83-
* @param cMax
84-
* @param bMin
85-
* @param bMax
86-
* @param lut
83+
* @param rslt the results from the Fit
84+
* @param cMin The lower bound used for the hue map. Hue values below this
85+
* bound will be mapped to black. Defaults to the fifth percentile
86+
* value across all lifetime values.
87+
* @param cMax The upper bound used for the hue map. Hue values above this
88+
* bound will be mapped to white. Defaults to the ninety-fifth
89+
* percentile value across all lifetime values.
90+
* @param bMin The lower bound used for the value map. Defaults to the minimum
91+
* of {@code rslt.intensityMap}
92+
* @param bMax The upper bound used for the value map. Defaults to the 99.5th
93+
* percentile of {@code rslt.intensityMap}
94+
* @param lut the {@link ColorTable} function to map hues between {@code cMin}
95+
* and {@code cMax}. Defaults to {@link Pseudocolor#tri2()}.
8796
* @return
8897
*/
8998
@Override

0 commit comments

Comments
 (0)