1/27/2024 0 Comments Skeleton sketchVmax ( float, optional) – The minimum and maximum values for the colormap. Vmin ( float, optional) – The minimum and maximum values for the colormap. Skeleton object and outputs a list of floating point values of the same Path_stdev: the standard deviation of pixel values along the path.Īlternatively, a callable can be provided that takes as input a Path_means: the mean value of the skeleton along each path. See theĭocumentation of skan.Skeleton for valid choices. The name of the method to use for the skeleton edge color. Skeleton_color_source ( string or callable, optional) – Skeleton ( skan.Skeleton object) – The input skeleton, which contains both the skeleton and the source Plot the image, and overlay the skeleton over it. overlay_skeleton_2d_class ( skeleton, *, image_cmap = 'gray', skeleton_color_source = 'path_means', skeleton_colormap = 'viridis', vmin = None, vmax = None, axes = None ) # If None, new ones are created.Īxes – The Axis on which the image is drawn. Large images where aliasing may cause some pixels of the skeletonĪxes ( matplotlib Axes) – The Axes on which to plot the image. Image_cmap ( matplotlib colormap name or object, optional) – If the input image is grayscale, colormap it with this colormap.Ĭolor ( tuple of float in, optional) – The RGB color for the skeleton pixels.Īlpha ( float, optional) – Blend the skeleton pixels with the given alpha.ĭilate ( int, optional) – Dilate the skeleton by this amount. Skeleton ( array, shape ( M, N )) – The input 1-pixel-wide skeleton. Image ( array, shape ( M, N )) – The input image. Overlay the skeleton pixels on the input image. overlay_skeleton_2d ( image, skeleton, *, image_cmap = None, color = (1, 0, 0), alpha = 1, dilate = 0, axes = None ) # If None, a new one is created.Īxes – The Axes on which the plot is drawn. Skeleton_colormap ( matplotlib colormap name or object, optional) – The colormap for the skeleton values.Īxes ( matplotlib Axes object, optional) – An Axes object on which to draw. This is the default.īranch-distance: the curved length of the skeleton branch.Įuclidean-distance: the straight-line length of the skeleton branch. Skeleton-id: each individual skeleton (connected component) willīranch-type: each branch type (tip-tip, tip-junction, Output of skan.summarise for valid choices. The name of the column to use for the skeleton edge color. Skeleton_color_source ( string, optional) – Image_cmap ( matplotlib colormap name or object, optional) – The colormap to use for the input image. Stats ( array, shape ( M, N )) – Skeleton statistics. Plot the image, and overlay the straight-line skeleton over it. overlay_euclidean_skeleton_2d ( image, stats, *, image_cmap = None, skeleton_color_source = 'branch-type', skeleton_colormap = 'viridis', axes = None ) # Skan.draw: Skeleton visualisation # skan.draw.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |