Skip to content

Latest commit

 

History

History
288 lines (171 loc) · 11.7 KB

readme.md

File metadata and controls

288 lines (171 loc) · 11.7 KB

List of use-cases

This list of 57 use-cases is auto-generated. Do not modify this file.

  • apply_otsu_threshold_and_count_postiive_pixels: Takes an image, applies Otsu's threshold method to it to create a binary image and counts the positive pixels.

  • binary_closing: Applies binary closing to a binary_image with a square footprint with a given radius.

  • binary_skeleton: Applies skeletonization to a 2D binary image.

  • bland_altman: Takes two specified columns from a given dataframe and applies Bland-Altman-Analysis to them. Therefore, it adds two new columns, one called 'mean' containing the mean of the two corresponding values, and one called 'diff' containing the difference between the two.

  • combine_columns_of_tables: This function combines to dataframes and makes sure the data is merged using the given index column, which must be present in both dataframes. The dataframes should be merged in a way that no data is lost and missing fields are filled with NaN.

  • convex_hull_measure_area: Take a 3D point_cloud, determines the convex hull around the points and returns the surface area of the convex hull.

  • convolve_images: Convolve an image with a kernel_image and return the result

  • count_number_of_touching_neighbors: Takes a label image and returns a list of number of touching neighbors for each labeled object.

  • count_objects_over_time: Takes a timelapse (list of binary images), counts the number of connected components and returns the resulting counts as list.

  • count_overlapping_regions: Takes two label images and counts how many objects in label_image_1 overlap with any label in label_image_2 with at least one pixel. It returns the count of overlapping objects.

  • create_umap: Takes a dataframe and computes a UMAP from all columns. The two UMAP vectors are stored in the dataframe as umap0 and umap1.

  • crop_quarter_image: Crops out the first half image in both dimensions (width and height). The resulting image will be of quarter size compared to the original image.

  • deconvolve_image: Deconvolve an image with a kernel_image and return the result.

  • detect_edges: Applies an edge-detection filter to an image.

  • expand_labels_without_overlap: Takes a label_image and enlarges all labels by a given radius, without labels overwriting each other.

  • extract_surface_measure_area: Take a 3D binary_volume_image, extracts the surface of the white (voxel value != 0) object and returns the surface area of the object.

  • fit_circle: Implements 2D circle fitting Input: Collection of 2d points, represented as a list of lists [ [x0,y0], [x1,y1], ... ]
    Output: Tuple: xc, yc, radius

  • label_binary_image_and_count_labels: Consumes as input a binary image, applies connected component labeling to it, counts the labeled objects and returns their count as single number.

  • label_sequentially: Takes a label_image with n labels and relabels the objects, to make sure all integer labels between 0 and n are used. No gaps are there.

  • list_image_files_in_folder: Lists all image files in a folder.

  • map_pixel_count_of_labels: Takes a label_image, determines the pixel-count per label and creates an image where the label values are replaced by the corresponding pixel count.

  • mask_image: Takes a 2D input image and a 2D binary mask image, then applies the mask to the input image and returns the result.

  • maximum_intensity_projection: Performs a maximum intensity projection along the first axis of an image.

  • mean_squared_error: Computes the mean-squared-error of two images compared pixel-by-pixel

  • mean_std_column: Computes the mean average and standard deviation of a specified column in a given dataframe and returns these two values.

  • measure_aspect_ratio_of_regions: Takes a label image and returns a pandas dataframe with measurements for aspect_ratio of the objects

  • measure_intensity_of_labels: Takes a label image and an intensity image, and returns a list of mean intensities of all pixels in the intensity image, belonging to a given label.

  • measure_intensity_over_time: Takes a timelapse (list of images), measures the average intensity over time and returns the resulting measurements as list.

  • measure_mean_image_intensity: Takes an image and returns its mean intensity

  • measure_pixel_count_of_labels: Takes a label image and returns a list of counts of number of pixels per label.

  • measure_properties_of_regions: Takes a label image and an intensity image, and returns pandas dataframe with measurements for area, perimeter and mean_intensity.

  • open_image_read_voxel_size: Reads an image file and return its voxel size in Z-Y-X order.

  • open_image_return_dimensions: Opens an image and returns its dimensions

  • open_nifti_image: This function loads a nifti image from the file at image_location and returns the image data as a numpy array.

  • open_zarr: Opens a zarr file and returns the array

  • pair_wise_correlation_matrix: Takes a pandas dataframe and computes for all columns their Pearson's correlation coefficient for all columns in the dataframe. For n columns, this is a n x n matrix of coefficients. The matrix is returned as dataframe.

  • radial_intensity_profile: Computes the radial intensity profile of an image around a given coordinate Inputs:

    • image: 2d numpy array
    • xy, yc: the center coordinates Output:
    • an array containing the average intensities
  • region_growing_segmentation: Segments an image using the region-growing/flood filling starting from a single point.

  • remove_labels_on_edges: Takes a label_image and removes all objects which touch the image border.

  • remove_noise_edge_preserving: Applies an edge-preserving noise-removal filter to an image.

  • remove_small_labels: Takes a label_image and removes all objects that are smaller than a given size_threshold.

  • return_hello_world: Returns the string "hello world".

  • rgb_to_grey_image_transform: Convert an RGB image to a single-channel gray scale image with configurable weights r, g and b. The weights are normalized to be 1 in sum.

  • rotate_image_by_90_degrees: Rotates an image by 90 degrees clockwise around the center of the image.

  • subsample_image: Subsamples an image by skipping every n'th pixel in X and Y.

  • subtract_background_tophat: Applies a top-hat filter with a given radius to an image with dark background (low values) and bright foreground (high values).

  • sum_images: Sums two images pixel-by-pixel and returns the result

  • sum_intensity_projection: Performs a maximum intensity projection along the first axis of an image.

  • tiled_image_processing: Apply a maximum filter with a given radius to the image using a tile-by-tile strategy. The tile_size denotes the size of the tiles in X and Y.

  • transpose_image_axes: Transposes the first two axes of an image.

  • t_test: Takes two specified columns from a given dataframe and applies a paired T-test to it to determine the p-value.

  • workflow_batch_process_folder_count_labels: This functions goes through all .tif image files in a specified folder, loads the images and count labels each image. It returns a dictionary with filenames and corresponding counts.

  • workflow_batch_process_folder_measure_intensity: This functions goes through all .tif image files in a specified image folder and corresponding label images in another labels folder. It loads the images and corresponding labels, and measures min, mean and max intensity of all labels. The function returns a dataframe with five columns: min_intensity, mean_intensity, max_intensity, label and filename.

  • workflow_segmentation_counting: This function segments objects in an image with intensity above average and returns their count.

  • workflow_segmentation_measurement_summary: This function implements a workflow consisting of these steps:

    • threshold intensity input image using Otsu's method
    • label connected components
    • measure area of the labeled objects
    • determine mean area of all objects
  • workflow_segment_measure_umap: This function takes a single channel intensity image, segments objects with intensity above half the maximum intensity, labels connected components, measures area, perimeter, mean_intensity, minor and major axis of the labeled objects, and produces a UMAP from the given measurements. The two UMAP vectors are saved as umap0 and umap1 togther with the measurements in a dataframe. The function returns this dataframe.

  • workflow_watershed_segmentation_correction_measurement: This function implements a workflow consisting of these steps:

    • blurs the image a bit
    • detect local minima in the blurred image
    • apply watershed segmentation flooding the blurred image from the detected minima to retrieve a label image
    • remove all objects which touch the image border
    • measure the area of all remaining objects together