MCPcopy Index your code

hub / github.com/DigitalSlideArchive/HistomicsTK / functions

Functions504 in github.com/DigitalSlideArchive/HistomicsTK

↓ 17 callersMethodinsert
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:79
↓ 13 callersFunctioncheck_fdata_sanity
(fdata, expected_feature_list, prefix='', match_feature_count=True)
tests/test_feature_extraction.py:40
↓ 12 callersFunction_conditional_execution
(feature, func, *args, **kwargs)
histomicstk/features/compute_intensity_features.py:126
↓ 9 callersFunctionconditional
(flag, func, args, kwargs, prefix=None)
histomicstk/features/compute_nuclei_features.py:200
↓ 9 callersFunctiongetTestFilePath
Return the path to a file in the tests/test_files directory. :param name: The name of the file. :returns: the path to the file.
tests/htk_test_utilities.py:10
↓ 9 callersFunctionget_contours_from_mask
Parse ground truth mask and gets contours for annotations. Parameters ---------- MASK : nd array ground truth mask (m,n) where pi
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:265
↓ 8 callersMethod_become
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:186
↓ 8 callersMethod_save_back
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:234
↓ 8 callersFunctionget_annotation_documents_from_contours
Given dataframe of contours, get list of annotation documents. This method parses a dataframe of contours to a list of dictionaries, each of
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:520
↓ 8 callersFunctionget_scale_factor_and_appendStr
Get how much is request region smaller than base. This also gets the string to append to server request for getting rgb. Parameters ----
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:72
↓ 7 callersFunctioncondense
Shifts labels in a label image to fill in gaps corresponding to missing values. Parameters ---------- im_label : array_like
histomicstk/segmentation/label/condense.py:4
↓ 7 callersFunctionget_bboxes_from_slide_annotations
Given a slide annotation list, gets information on bounding boxes. Parameters ---------- slide_annotations : list of dicts respon
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:210
↓ 7 callersFunctionget_image_from_htk_response
Given a histomicsTK girder response, get np array image. Parameters ---------- resp : object response from server request
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:18
↓ 7 callersMethodis_leaf
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:205
↓ 7 callersFunctionscale_slide_annotations
Scales up or down annotations in a slide. Works in place, but returns slide_annotations anyways. Parameters ---------- slide_annotat
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:39
↓ 6 callersFunction_parse_annot_coords
Get x-, y- coordinates in a list format (Internal).
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:194
↓ 6 callersMethodchildren
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:360
↓ 6 callersFunctionget_tissue_mask
Get binary tissue mask from slide thumbnail. Parameters ---------- thumbnail_im : np array (m, n, 3) nd array of thumbnail RGB im
histomicstk/saliency/tissue_detection.py:48
↓ 6 callersMethodunion
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:130
↓ 5 callersFunctioncolor_deconvolution_routine
Unmix stains mixing followed by deconvolution (wrapper). Parameters ---------- im_rgb : array_like An RGB image (m x n x 3) to co
histomicstk/preprocessing/color_deconvolution/color_deconvolution.py:235
↓ 5 callersFunctionget_image_and_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:538
↓ 5 callersFunctionreinhard
Perform Reinhard color normalization. Transform the color characteristics of an image to a desired standard. The standard is defined by the m
histomicstk/preprocessing/color_normalization/reinhard.py:7
↓ 5 callersMethodrun
Run workflow for all slides.
histomicstk/workflows/workflow_runner.py:116
↓ 5 callersFunctiontrace_object_boundaries
Performs exterior boundary tracing of one or more objects in a label mask. If a starting point is not provided then a raster scan will be performe
histomicstk/segmentation/label/trace_object_boundaries.py:6
↓ 4 callersFunction_get_idxs_for_all_rois
Get indices of ROIs within the element_infos dataframe. (Internal)
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:605
↓ 4 callersMethod_setup
(self)
histomicstk/annotations_and_masks/tests/test_masks_to_annotations_handler.py:27
↓ 4 callersFunctionannotations_to_contours_no_mask
Process annotations to get RGB and contours without intermediate masks. Parameters ---------- gc : object girder client object to
histomicstk/annotations_and_masks/annotations_to_object_mask_handler.py:123
↓ 4 callersFunctionassert_array_almost_equal_neighborhood_lines
Wrapper around assert_array_almost_equal to work around scikit-image bug. `skimage.transform.resize()` can return different results on different
tests/test_blob_detection_filters.py:11
↓ 4 callersFunctioncenter_of_gravity
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:432
↓ 4 callersFunctiondeconvolution_based_normalization
Perform color normalization using color deconvolution to transform the. ... color characteristics of an image to a desired standard. After th
histomicstk/preprocessing/color_normalization/deconvolution_based_normalization.py:18
↓ 4 callersFunctiondelete_annotations_in_slide
Delete all annotations in a slide.
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:775
↓ 4 callersFunctionlab_mean_std
Compute the mean and standard deviation of the intensities. ... of each channel of the given RGB image in LAB color space. The outputs of thi
histomicstk/preprocessing/color_conversion/lab_mean_std.py:8
↓ 4 callersFunctionod_to_rgb
Transforms input optical density image `im_od` into RGB space Parameters ---------- im_od : array_like A floating-point image of
histomicstk/preprocessing/color_conversion/od_to_rgb.py:4
↓ 4 callersFunctionparse_slide_annotations_into_tables
Given a slide annotation list, parse into convenient tabular format. If the annotation is a point, then it is just treated as if it is a rect
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:409
↓ 4 callersFunctionrgb_to_od
Transforms input RGB image `im_rgb` into optical density space for color deconvolution. Parameters ---------- im_rgb : array_like
histomicstk/preprocessing/color_conversion/rgb_to_od.py:4
↓ 4 callersFunctionrgb_to_sda
Transform input RGB image or matrix `im_rgb` into SDA (stain darkness) space for color deconvolution. Parameters ---------- im_rgb :
histomicstk/preprocessing/color_conversion/rgb_to_sda.py:4
↓ 4 callersMethodrun
Yield information on one slide at a time.
histomicstk/workflows/workflow_runner.py:58
↓ 3 callersFunction_discard_nonenclosed_background_group
If a background group contour is NOT fully enclosed, discard it. This is a purely aesthetic method, makes sure that the background group cont
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:202
↓ 3 callersFunction_runCLITest
(cli, args)
tests/test_cli_results.py:14
↓ 3 callersFunction_simple_add_element_to_roi
Get element coords and mask and add to ROI (Internal).
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:782
↓ 3 callersFunction_visualize_annotations_on_rgb
( rgb, contours_list, linewidth=0.2, x_offset=0, y_offset=0, text=False)
histomicstk/annotations_and_masks/annotations_to_masks_handler.py:371
↓ 3 callersMethodapply_callback_to_all_annotations
Apply callback to all annotations and return output list.
histomicstk/workflows/workflow_runner.py:229
↓ 3 callersFunctioncomplement_stain_matrix
Generates a complemented stain matrix Used to fill out empty columns of a stain matrix for use with color_deconvolution. Replaces right-most c
histomicstk/preprocessing/color_deconvolution/complement_stain_matrix.py:4
↓ 3 callersMethodcreate
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:101
↓ 3 callersMethoddoes_containpoint
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:125
↓ 3 callersFunctionget_all_rois_from_slide_v2
Get all ROIs for a slide without an intermediate mask form. This mainly relies on contours_to_labeled_object_mask(), which should be referred
histomicstk/annotations_and_masks/annotations_to_object_mask_handler.py:484
↓ 3 callersFunctionget_roi_mask
Parse annotations and gets a ground truth mask for a single ROI. This will look at all slide annotations and get ones that overlap with the r
histomicstk/annotations_and_masks/annotations_to_masks_handler.py:29
↓ 3 callersFunctionget_rotated_rectangular_coords
Given data on rectangular ROI center/width/height/rotation. Get the unrotated abounding box coordinates around rotated ROI. This of course is
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:160
↓ 3 callersFunctionget_slide_thumbnail
Get slide thumbnail using girder client. Parameters ---------- gc : object girder client to use slide_id : str girder
histomicstk/saliency/tissue_detection.py:21
↓ 3 callersMethodleaf_obj
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:227
↓ 3 callersFunctionrgb_to_lab
Transforms an image from RGB to LAB color space Parameters ---------- im_rgb : array_like An RGB image Returns -------
histomicstk/preprocessing/color_conversion/rgb_to_lab.py:18
↓ 2 callersMethod__init__
Init Slide_iterator object. Arguments: --------- gc : object girder client object source_folder_id : str
histomicstk/workflows/workflow_runner.py:12
↓ 2 callersFunction_add_element_to_roi
Add single polygon to ROI given mask (Internal).
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:717
↓ 2 callersMethod_add_single_merged_edge_contour
Add single contour to self.merged_contours (Internal).
histomicstk/annotations_and_masks/polygon_merger.py:496
↓ 2 callersFunction_append_polygon_if_valid
(contDict, cid, polygon_list)
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:227
↓ 2 callersFunction_connect_girder_client_to_local_dsa
Connect a girder client to the local DSA docker
tests/htk_test_utilities.py:30
↓ 2 callersFunction_count_image
A version of count_image that doesn't compute the label image and only computes the sums.
histomicstk/segmentation/positive_pixel_count.py:184
↓ 2 callersFunction_default_num_levels
(im_input)
histomicstk/features/graycomatrixext.py:246
↓ 2 callersFunction_default_offsets
(im_input)
histomicstk/features/graycomatrixext.py:266
↓ 2 callersFunction_dist
Compute the distance between two sets of points. Has signature (i),(i)->().
histomicstk/features/compute_global_cell_graph_features.py:178
↓ 2 callersFunction_get_contours_df
Parse ground truth mask and gets contours (Internal).
histomicstk/annotations_and_masks/masks_to_annotations_handler.py:132
↓ 2 callersFunction_get_coords_from_element
(element)
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:274
↓ 2 callersFunction_get_element_mask
Get coordinates and mask for annotation element. (Internal)
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:693
↓ 2 callersFunction_get_htk_ipaddr
Search docker containers for a DSA docker container and fetch its IP address
tests/htk_test_utilities.py:20
↓ 2 callersFunction_get_roi_bounds_by_run_mode
( gc, slide_id, mode, bounds, element_infos, idx_for_roi, sf)
histomicstk/annotations_and_masks/annotations_to_masks_handler.py:469
↓ 2 callersMethod_merge_leafs
(self, leafs)
histomicstk/annotations_and_masks/polygon_merger_v2.py:136
↓ 2 callersMethod_merge_polygons
(self, poly_list)
histomicstk/annotations_and_masks/polygon_merger_v2.py:128
↓ 2 callersFunction_poly_area
(vertices)
histomicstk/features/compute_global_cell_graph_features.py:164
↓ 2 callersFunction_pop_stats
(pop)
histomicstk/features/compute_global_cell_graph_features.py:186
↓ 2 callersFunction_remove_thin_colinear_spurs
Simplifies the given list of points by removing colinear spurs
histomicstk/segmentation/label/trace_object_boundaries.py:154
↓ 2 callersFunction_reorder_stains
Reorder stains in a stain matrix to a specific order. This is particularly relevant in macenco where the order of stains is not preserved dur
histomicstk/preprocessing/color_deconvolution/color_deconvolution.py:112
↓ 2 callersMethod_set_children
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:334
↓ 2 callersFunction_sort_list
(input_list)
tests/test_blob_detection_filters.py:39
↓ 2 callersFunction_totals_to_stats
Do the extra computations to convert an OutputTotals to an Output
histomicstk/segmentation/positive_pixel_count.py:220
↓ 2 callersMethodarea
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:83
↓ 2 callersFunctionavg_diagonals
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:386
↓ 2 callersFunctionclosest
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rtree.py:446
↓ 2 callersFunctioncompare_maxima
Compares image maxima Compare that the maxima found in an image matches the maxima found in a ground truth image. This function is a wrapper
tests/test_blob_detection_filters.py:43
↓ 2 callersFunctioncompute_intensity_features
Calculate intensity features from an intensity image. Parameters ---------- im_label : array_like A labeled mask image wherein in
histomicstk/features/compute_intensity_features.py:7
↓ 2 callersFunctionconvert_image_to_matrix
Convert an image (MxNx3 array) to a column matrix of pixels (3x(M*N)). It will pass through a 2D array unchanged.
histomicstk/utils/convert_image_to_matrix.py:1
↓ 2 callersMethodcoords
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:62
↓ 2 callersFunctioncreate_mask_from_coords
Create a binary mask from given vertices coordinates. Source: This is modified from code by Juan Carlos from David Gutman Lab. Parameters
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:655
↓ 2 callersFunctiondelete
Deletes objects with values in 'indices' from label image, writing them over with zeros to assimilate with background. Parameters --
histomicstk/segmentation/label/delete.py:4
↓ 2 callersFunctiondelete_border
Deletes objects touching the border of the image and relabel Parameters ---------- im_label : array_like A label mask genera
histomicstk/segmentation/label/delete_border.py:7
↓ 2 callersFunctiondump_annotations_locally
Dump annotations of folder and subfolders locally recursively. This reproduces this tiered structure locally and (possibly) dumps annotations
histomicstk/annotations_and_masks/annotation_database_parser.py:278
↓ 2 callersFunctionestimate_variance
Estimates variance of a peak in a histogram using the FWHM of an approximate normal distribution. Starting from a user-supplied peak and histo
histomicstk/utils/simple_mask.py:162
↓ 2 callersFunctionget_absolute_girder_folderpath
Get absolute path for a girder folder. Parameters ---------- gc : girder_client.GirderClient authenticated girder client fold
histomicstk/utils/girder_convenience_utils.py:48
↓ 2 callersFunctionget_all_rois_from_slide
Parse annotations and saves ground truth masks for ALL ROIs. Get all ROIs in a single slide. This is mainly uses get_image_and_mask_from_slid
histomicstk/annotations_and_masks/annotations_to_masks_handler.py:820
↓ 2 callersFunctionget_idxs_for_annots_overlapping_roi_by_bbox
Find indices of **potentially** included annotations within the ROI. We say "potentially" because this uses the IoU of roi and annotation as a
histomicstk/annotations_and_masks/annotation_and_mask_utils.py:619
↓ 2 callersFunctionget_percentile_vector
(p)
histomicstk/preprocessing/color_deconvolution/separate_stains_macenko_pca.py:94
↓ 2 callersFunctionget_tissue_boundary_annotation_documents
Get annotation documents of tissue boundaries to visualize on DSA. Parameters ---------- gc : object girder client to use sli
histomicstk/saliency/tissue_detection.py:137
↓ 2 callersFunctionglogkernel
(sigma_x, sigma_y, theta)
histomicstk/filters/shape/glog.py:109
↓ 2 callersMethodintersect
Placeholder.
histomicstk/annotations_and_masks/pyrtree/rect.py:100
↓ 2 callersFunctionprocess_wsi
(ts, it_kwargs, args, im_fgnd_mask_lres=None, fgnd_seg_scale=None, process_whole_image=False)
histomicstk/cli/NucleiDetection/NucleiDetection.py:86
↓ 2 callersFunctionrgb_perturb_stain_concentration
Apply wrapper that calls perturb_stain_concentration() on RGB. Parameters ---------- im_rgb : array_like An RGB image (m x n x 3)
histomicstk/preprocessing/augmentation/color_augmentation.py:108
↓ 2 callersFunctionrgb_separate_stains_macenko_pca
Compute the stain matrix for color deconvolution with the "Macenko" method from an RGB image or matrix. Parameters ---------- im_rgb
histomicstk/preprocessing/color_deconvolution/rgb_separate_stains_macenko_pca.py:5
↓ 2 callersFunctionrgb_to_hsi
Convert to HSI the RGB pixels in im. Adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#Hue_and_chroma.
histomicstk/preprocessing/color_conversion/rgb_to_hsi.py:6
↓ 2 callersFunctionround_float
(x)
histomicstk/segmentation/nuclear/gvf_tracking.py:270
↓ 2 callersFunctionsample_pixels
Version of histomicstk.utils.sample_pixels that takes a Namespace and handles the special default values.
histomicstk/cli/utils.py:476
↓ 2 callersFunctionsda_to_rgb
Transform input SDA image or matrix `im_sda` into RGB space. This is the inverse of `rgb_to_sda` with respect to the first parameter Paramet
histomicstk/preprocessing/color_conversion/sda_to_rgb.py:1
next →1–100 of 504, ranked by callers