Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DigitalSlideArchive/HistomicsTK
/ functions
Functions
504 in github.com/DigitalSlideArchive/HistomicsTK
⨍
Functions
504
◇
Types & classes
58
↓ 1 callers
Method
diagonal
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:168
↓ 1 callers
Method
diagonal_sq
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:160
↓ 1 callers
Method
does_intersect
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:121
↓ 1 callers
Function
double_well
(Phi, dPhi, mPhi, Curve, i)
histomicstk/segmentation/level_set/reg_edge.py:120
↓ 1 callers
Method
extent
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:89
↓ 1 callers
Method
find_potentially_cellular_regions
Find regions that are potentially cellular.
histomicstk/saliency/cellularity_detection_thresholding.py:173
↓ 1 callers
Function
find_stain_index
Identify the stain vector in w that best aligns with the reference vector. This is used with adaptive deconvolution routines where the order of r
histomicstk/preprocessing/color_deconvolution/find_stain_index.py:6
↓ 1 callers
Method
find_top_cellular_regions
Keep largest and most cellular regions.
histomicstk/saliency/cellularity_detection_thresholding.py:209
↓ 1 callers
Method
fix_GTcodes
Fix self.GTcodes (important!).
histomicstk/saliency/cellularity_detection_thresholding.py:554
↓ 1 callers
Function
gaussian_mixture
(x, mu1, mu2, sigma1, sigma2, p)
histomicstk/utils/simple_mask.py:108
↓ 1 callers
Function
gen_distinct_rgb_colors
Generates N visually distinct RGB colors Parameters ---------- n : int Number of distinct RGB colors to output seed: in
histomicstk/cli/NucleiClassification/NucleiClassification.py:75
↓ 1 callers
Function
get_all_rois_from_folder_v2
Get all rois in a girder folder using get_all_rois_from_slide_v2(). Parameters ---------- gc : girder_client.Girder_Client authen
histomicstk/annotations_and_masks/review_gallery.py:57
↓ 1 callers
Method
get_concatenated_contours
Get concatenated contours and overall bounding box. Returns ------- - pandas DataFrame: has the same structure as output from
histomicstk/annotations_and_masks/polygon_merger.py:577
↓ 1 callers
Function
get_contours_from_bin_mask
Given a binary mask, get opencv contours. Parameters ---------- bin_mask : nd array ground truth mask (m,n) - int32 with [0, 1] v
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:15
↓ 1 callers
Method
get_first_child
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:220
↓ 1 callers
Function
get_mask_from_slide
Parse region from the slide and get its corresponding labeled mask. This is a wrapper around get_roi_mask() which should be referred to for i
histomicstk/annotations_and_masks/annotations_to_masks_handler.py:211
↓ 1 callers
Method
get_merged_multipolygon
Get final merged shapely multipolygon by hierarchical merger.
histomicstk/annotations_and_masks/polygon_merger_v2.py:151
↓ 1 callers
Function
get_region_polygons
Convert the region into a list of polygons. Params ------ region: list 4 elements -- left, top, width, height -- or all -1,
histomicstk/cli/utils.py:274
↓ 1 callers
Function
get_single_annotation_document_from_contours
Given dataframe of contours, get annotation document. This uses the large_image annotation schema to create an annotation document that maybe
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:414
↓ 1 callers
Function
get_stain_vector
Get the stain corresponding to args.stain_$index and args.stain_$index_vector. If the former is not "custom", all the latter's elements must
histomicstk/cli/utils.py:22
↓ 1 callers
Function
gradient_diffusion
Diffusion of gradient field using Navier-Stokes equation. Used for smoothing/denoising a gradient field. Takes as input a gradient field
histomicstk/utils/gradient_diffusion.py:4
↓ 1 callers
Function
graycomatrixext
Computes gray-level co-occurence matrix (GLCM) within a region of interest (ROI) of an image. GLCM is a 2D histogram/matrix containing the cou
histomicstk/features/graycomatrixext.py:4
↓ 1 callers
Method
has_children
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:209
↓ 1 callers
Method
holds_leaves
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:213
↓ 1 callers
Function
image_inversion_flag_setter
(args=None)
histomicstk/cli/NucleiDetection/NucleiDetection.py:37
↓ 1 callers
Function
impulse
(X, Epsilon)
histomicstk/segmentation/level_set/reg_edge.py:132
↓ 1 callers
Method
initialize_labeled_mask
Initialize labeled components mask.
histomicstk/saliency/cellularity_detection_thresholding.py:95
↓ 1 callers
Function
k_means_cluster
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:460
↓ 1 callers
Function
kappa
(im_phi)
histomicstk/segmentation/level_set/chan_vese.py:88
↓ 1 callers
Function
lab_to_rgb
Transforms an image from LAB to RGB color space Parameters ---------- im_lab : array_like An image in LAB color space Return
histomicstk/preprocessing/color_conversion/lab_to_rgb.py:10
↓ 1 callers
Function
label_contour
Constructs a label image from scored contours. Masks for contours with low priority/score are placed first into the label image and then are o
histomicstk/segmentation/nuclear/min_model.py:417
↓ 1 callers
Function
length_score
Scores the length of the cutting line (x1, y1)->(x2, y2) made at a concavity depth of d1 and d2. Returns ------- Score : float
histomicstk/segmentation/nuclear/min_model.py:755
↓ 1 callers
Method
lift
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:178
↓ 1 callers
Function
magnitude
Get the magnitude of each column vector in a matrix
histomicstk/preprocessing/color_deconvolution/_linalg.py:12
↓ 1 callers
Function
main
(args)
histomicstk/cli/NucleiDetection/NucleiDetection.py:190
↓ 1 callers
Function
main
(args)
histomicstk/cli/ColorDeconvolution/ColorDeconvolution.py:70
↓ 1 callers
Function
main
(origargs)
histomicstk/cli/SeparateStainsMacenkoPCA/SeparateStainsMacenkoPCA.py:13
↓ 1 callers
Function
main
(args)
histomicstk/cli/NucleiClassification/NucleiClassification.py:222
↓ 1 callers
Function
main
(origargs)
histomicstk/cli/SeparateStainsXuSnmf/SeparateStainsXuSnmf.py:12
↓ 1 callers
Function
main
(opts)
histomicstk/cli/PositivePixelCount/PositivePixelCount.py:57
↓ 1 callers
Function
main
(args)
histomicstk/cli/BackgroundIntensity/BackgroundIntensity.py:10
↓ 1 callers
Function
main
(args)
histomicstk/cli/ComputeNucleiFeatures/ComputeNucleiFeatures.py:44
↓ 1 callers
Function
mask_to_sdf
(im_mask)
histomicstk/segmentation/level_set/chan_vese.py:79
↓ 1 callers
Function
namedFolder
(user, folderName='Public')
tests/docker_setup.py:16
↓ 1 callers
Method
nchildren
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:251
↓ 1 callers
Function
neumann_bounds
(Phi)
histomicstk/segmentation/level_set/reg_edge.py:144
↓ 1 callers
Function
normalize
Normalize each column vector in a matrix
histomicstk/preprocessing/color_deconvolution/_linalg.py:17
↓ 1 callers
Function
np_vec_no_jit_iou
Fast, vectorized IoU. Source: https://medium.com/@venuktan/vectorized-intersection-over-union ... -iou-in-numpy-and-tensor-flow-4fa16
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:573
↓ 1 callers
Function
perturb_stain_concentration
Perturb stain concentrations in SDA space and return augmented image. This is an implementation of the method described in Tellez et al, 2018
histomicstk/preprocessing/augmentation/color_augmentation.py:14
↓ 1 callers
Function
process_feature_and_annotation
Process nuclei feature extraction and annotation from an input image. Args: ---- args (dict): Configuration parameters for featu
histomicstk/cli/NucleiClassification/NucleiClassification.py:111
↓ 1 callers
Function
process_nucleus
(nprop, im_nuclei_bool)
histomicstk/features/compute_nuclei_features.py:178
↓ 1 callers
Function
process_wsi_as_whole_image
(ts, invert_image=False, args=None, default_img_inversion=False)
histomicstk/cli/NucleiDetection/NucleiDetection.py:68
↓ 1 callers
Function
read_feature_file
Read nuclei feature data from a specified file. Args: ---- args (dict): Configuration parameters including the input feature fil
histomicstk/cli/NucleiClassification/NucleiClassification.py:191
↓ 1 callers
Function
read_input_image
(args, process_whole_image=False)
histomicstk/cli/NucleiDetection/NucleiDetection.py:22
↓ 1 callers
Function
reproduce_annotations_workflow
Dump annotations into single slide from local folder (Internal function). Parameters ---------- gc : girder_client.GirderClient a
histomicstk/utils/girder_convenience_utils.py:487
↓ 1 callers
Method
restrict_mask_to_single_tissue_piece
Only keep relevant part of slide mask.
histomicstk/saliency/cellularity_detection_thresholding.py:75
↓ 1 callers
Method
restrict_mask_to_single_tissue_piece
Only keep relevant part of slide mask.
histomicstk/saliency/cellularity_detection_superpixels.py:77
↓ 1 callers
Function
revert_annotations_in_slide
Revert all annotations in a slide to a previous version. Parameters ---------- gc : girder_client.GirderClient authenticated gird
histomicstk/utils/girder_convenience_utils.py:415
↓ 1 callers
Function
rotate_point_list
Rotate a certain point list around a central point. Modified from. javascript version at: https://github.com/girder/large_image/blob/master/
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:122
↓ 1 callers
Method
run
Run full pipeline to get merged contours. Returns ------- - pandas DataFrame: has the same structure as output from g
histomicstk/annotations_and_masks/polygon_merger.py:614
↓ 1 callers
Method
run
Run sequence for merging polygons & adding contours.
histomicstk/annotations_and_masks/polygon_merger_v2.py:253
↓ 1 callers
Method
run
Get cellularity and optionally visualize on DSA.
histomicstk/saliency/cellularity_detection_thresholding.py:51
↓ 1 callers
Method
run
Run full pipeline to detect cellular regions.
histomicstk/saliency/cellularity_detection_thresholding.py:577
↓ 1 callers
Method
run
Get cellularity and optionally visualize on DSA.
histomicstk/saliency/cellularity_detection_superpixels.py:48
↓ 1 callers
Method
run
Run cellularity detection and optionally visualize result. This runs the cellularity detection +/- visualization pipeline and returns
histomicstk/saliency/cellularity_detection_superpixels.py:446
↓ 1 callers
Method
run_for_single_group
Run sequence for merging polygons & adding contours (one group).
histomicstk/annotations_and_masks/polygon_merger_v2.py:232
↓ 1 callers
Function
score_contours
Scores boundary contours using gradient information. Implemented from the reference below. Each contour is weighted by the average gradient and
histomicstk/segmentation/nuclear/min_model.py:349
↓ 1 callers
Function
seed_contours
Detects seed pixels for contour tracing by finding max-gradient points between local minima and maxima in an intensity image. Parameters
histomicstk/segmentation/nuclear/min_model.py:96
↓ 1 callers
Function
separate_stains_macenko_pca
Compute the stain matrix for color deconvolution with the Macenko method. For a two-stain image or matrix in SDA space, this method works by
histomicstk/preprocessing/color_deconvolution/separate_stains_macenko_pca.py:10
↓ 1 callers
Function
separate_stains_xu_snmf
Compute the stain matrix for color deconvolution with SNMF. ... (sparse non-negative matrix factorization). Parameters ---------- im
histomicstk/preprocessing/color_deconvolution/separate_stains_xu_snmf.py:10
↓ 1 callers
Method
set_color_normalization_values
Set color normalization values for thumbnail or main image.
histomicstk/saliency/cellularity_detection_superpixels.py:499
↓ 1 callers
Method
set_contours_from_all_masks
Get contours_df from all masks. This is a wrapper around get_contours_from_mask(), with the added functionality of separating out con
histomicstk/annotations_and_masks/polygon_merger.py:118
↓ 1 callers
Method
set_contours_slice
Slice a single group from self.contours_df.
histomicstk/annotations_and_masks/polygon_merger_v2.py:73
↓ 1 callers
Method
set_hierarchy
Get hierarchy of node indices.
histomicstk/annotations_and_masks/polygon_merger_v2.py:100
↓ 1 callers
Method
set_merged_contours
Go through each group and merge contours. Sets: - self.merged_contours: pandas DataFrame: has the same structure as output fr
histomicstk/annotations_and_masks/polygon_merger.py:542
↓ 1 callers
Function
set_reference_values
Set reference values and configuration parameters for feature extraction. Args: ---- args (dict): Configuration parameters for f
histomicstk/cli/NucleiClassification/NucleiClassification.py:30
↓ 1 callers
Method
set_roi_bboxes
Get dictionary of roi bounding boxes. Arguments: --------- - roi_offsets: dict (default, None): dict indexed by maskname,
histomicstk/annotations_and_masks/polygon_merger.py:202
↓ 1 callers
Method
set_shared_roi_edges
Get shared edges between rois in same slide (Internal).
histomicstk/annotations_and_masks/polygon_merger.py:246
↓ 1 callers
Method
set_slide_info_and_get_tissue_mask
Set self.slide_info dict and self.labeled tissue mask.
histomicstk/saliency/cellularity_detection_thresholding.py:642
↓ 1 callers
Method
set_slide_info_and_get_tissue_mask
Set self.slide_info dict and self.labeled tissue mask.
histomicstk/saliency/cellularity_detection_superpixels.py:516
↓ 1 callers
Method
set_superpixel_assignment
Fit gaussian mixture model to features and get assignment.
histomicstk/saliency/cellularity_detection_superpixels.py:174
↓ 1 callers
Method
set_superpixel_features
Get superpixel features.
histomicstk/saliency/cellularity_detection_superpixels.py:138
↓ 1 callers
Method
set_superpixel_mask
Use Simple Linear Iterative Clustering (SLIC) to get superpixels.
histomicstk/saliency/cellularity_detection_superpixels.py:104
↓ 1 callers
Method
set_tissue_rgb
Load RGB from server for single tissue piece.
histomicstk/saliency/cellularity_detection_thresholding.py:86
↓ 1 callers
Method
set_tissue_rgb
Load RGB from server for single tissue piece.
histomicstk/saliency/cellularity_detection_superpixels.py:88
↓ 1 callers
Method
set_tree_dict
Get tree in convenience dict format (dicts inside dicts).
histomicstk/annotations_and_masks/polygon_merger_v2.py:86
↓ 1 callers
Function
silhouette_coeff
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:414
↓ 1 callers
Function
silhouette_w
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:407
↓ 1 callers
Function
simple_mask
Performs segmentation of the foreground (tissue) Uses a simple two-component Gaussian mixture model to mask tissue areas from background in br
histomicstk/utils/simple_mask.py:4
↓ 1 callers
Function
single_well
(Phi, Curve)
histomicstk/segmentation/level_set/reg_edge.py:115
↓ 1 callers
Function
split_concavities
Performs splitting of objects in a label image using geometric scoring of concavities. Attempts to perform splits at narrow regions that are p
histomicstk/segmentation/nuclear/min_model.py:487
↓ 1 callers
Method
test_compute_intensity_features
(self)
tests/test_feature_extraction.py:126
↓ 1 callers
Method
test_compute_morphometry_features
(self)
tests/test_feature_extraction.py:259
↓ 1 callers
Method
test_setup
(self)
tests/test_feature_extraction.py:59
↓ 1 callers
Function
tile_positive_pixel_count
(imagePath, tilePosition, it_kwargs, ppc_params, color_map, useAlpha, region_pol
histomicstk/cli/PositivePixelCount/PositivePixelCount.py:15
↓ 1 callers
Function
trace_contours
Performs contour tracing of seed pixels in an intensity image using gradient information. Parameters ---------- I : array_like
histomicstk/segmentation/nuclear/min_model.py:255
↓ 1 callers
Function
union_all
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:178
↓ 1 callers
Function
update_permissions_for_annotations_in_slide
Update permissions for all annotations in a slide. Parameters ---------- gc : girder_client.GirderClient authenticated girder cli
histomicstk/utils/girder_convenience_utils.py:159
↓ 1 callers
Function
update_styles_for_annotations_in_folder
Update styles for all annotations in a folder recursively. Parameters ---------- gc : girder_client.GirderClient authenticated gi
histomicstk/utils/girder_convenience_utils.py:303
↓ 1 callers
Function
update_styles_for_annotations_in_slide
Update styles for all annotations in a slide. Parameters ---------- gc : girder_client.GirderClient authenticated girder client
histomicstk/utils/girder_convenience_utils.py:267
← previous
next →
201–300 of 504, ranked by callers