Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draw_mean_intensity_between_centroids_mesh #286

Open
haesleinhuepf opened this issue Mar 14, 2023 · 0 comments
Open

draw_mean_intensity_between_centroids_mesh #286

haesleinhuepf opened this issue Mar 14, 2023 · 0 comments

Comments

@haesleinhuepf
Copy link
Member

It should be possible to come up with short-cut functions for drawing meshes like this:

# Determine thresholds
centroids = cle.centroids_of_labels(labels)

# Make a centroid-to-centoird distance matrix
distance_matrix = cle.generate_distance_matrix(centroids, centroids)

# Threshold the distance matrix to make a binary matrix
proximal_neighbor_matrix = cle.generate_proximal_neighbors_matrix(distance_matrix, max_distance=distance_threshold)

# Determine intensity along the edges
mean_intensity_matrix = cle.generate_mean_intensity_between_points_matrix(blobs, centroids, proximal_neighbor_matrix, num_samples=10)

# draw the intensity mesh
mean_intensity_mesh = cle.touch_matrix_to_mesh(centroids, mean_intensity_matrix)

cle.imshow(blobs, continue_drawing=True)
cle.imshow(mean_intensity_mesh, alpha=0.7, min_display_intensity=100, max_display_intensity=200, colormap='jet', colorbar=True)

And analogously for stddeviation, min, max, etc.

@haesleinhuepf haesleinhuepf changed the title draw_mean_intensity_between_centroids_map draw_mean_intensity_between_centroids_mesh\ Mar 14, 2023
@haesleinhuepf haesleinhuepf changed the title draw_mean_intensity_between_centroids_mesh\ draw_mean_intensity_between_centroids_mesh Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant