Package qupath.ext.braian
Class ImageChannelTools
java.lang.Object
qupath.ext.braian.ImageChannelTools
-
Constructor Summary
ConstructorsConstructorDescriptionImageChannelTools(String name, qupath.lib.images.ImageData<BufferedImage> imageData) Crates anImageChannelToolsfrom the given channel name andImageDataImageChannelTools(String name, qupath.lib.images.servers.ImageServer<BufferedImage> server) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionij.process.ImageStatisticsgetChannelStats(int resolutionLevel) Deprecated.getDetections(qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) returns an instance ofChannelDetections, if existing in the current hierarchygetHistogram(int resolutionLevel) Computes theChannelHistogramof the current channel at the given resolution.ij.process.ImageProcessorgetImageProcessor(int resolutionLevel) Retrieves the correspondingImageProcessorof the current channel at the given resolution.getName()int
-
Constructor Details
-
ImageChannelTools
@Deprecated(since="1.1.1") public ImageChannelTools(String name, qupath.lib.images.servers.ImageServer<BufferedImage> server) Deprecated.Creates anImageChannelToolsfrom the given channel name andImageServer- Parameters:
name- name of the channelserver- image server to which the channel is referring to
-
ImageChannelTools
Crates anImageChannelToolsfrom the given channel name andImageData- Parameters:
name- name of the channelimageData- data of the image to which the channel is referring to
-
-
Method Details
-
getnChannel
public int getnChannel()- Returns:
- index of the corresponding channel used by QuPath
-
getHistogram
Computes theChannelHistogramof the current channel at the given resolution.- Parameters:
resolutionLevel- Resolution level, If it's bigger thanImageServer.nResolutions()-1, than it uses the igven n-th resolution.- Returns:
- the histogram of the given channel
- Throws:
IOException- when it fails to read the image file to build the histogram- See Also:
-
getImageProcessor
Retrieves the correspondingImageProcessorof the current channel at the given resolution.- Parameters:
resolutionLevel- Resolution level, If it's bigger thanImageServer.nResolutions()-1, than it uses the given n-th resolution.- Returns:
- the image channel as processed by ImageJ at the given resolution
- Throws:
IOException- when it fails to read the image file- See Also:
-
getChannelStats
@Deprecated(since="1.0.4") public ij.process.ImageStatistics getChannelStats(int resolutionLevel) throws IOException Deprecated.Computes theImageStatisticsof the current channel at the given resolution.- Parameters:
resolutionLevel- Resolution level, If it's bigger thanImageServer.nResolutions()-1, than it uses the given n-th resolution.- Returns:
- the statistics of the channel computed by ImageJ at the given resolution
- Throws:
IOException- when it fails to read the image file- See Also:
-
getName
- Returns:
- the name of the associated image channel
-
getDetections
public ChannelDetections getDetections(qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) throws NoCellContainersFoundException returns an instance ofChannelDetections, if existing in the current hierarchy- Parameters:
hierarchy- where to find the detections- Throws:
NoCellContainersFoundException- if no pre-computed detection was found in the given hierarchy- See Also:
-