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

Adjacent Connected Domains #132

Open
qwertyuiop194 opened this issue Oct 23, 2024 · 1 comment
Open

Adjacent Connected Domains #132

qwertyuiop194 opened this issue Oct 23, 2024 · 1 comment
Labels
question Further information is requested

Comments

@qwertyuiop194
Copy link

How Do I Obtain Information About Adjacent Connected Domains?

@william-silversmith william-silversmith added the question Further information is requested label Oct 23, 2024
@william-silversmith
Copy link
Contributor

Hi! I'm not sure what information you are looking for exactly, but take a look at cc3d.contacts for measurements of contact surface area between adjacent regions.

# Compute the contact surface area between all labels.
# Only face contacts are counted as edges and corners
# have zero area. To get a simple count of all contacting
# voxels, set `surface_area=False`. 
# { (1,2): 16 } aka { (label_1, label_2): contact surface area }
surface_per_contact = cc3d.contacts(
  labels_out, connectivity=connectivity,
  surface_area=True, anisotropy=(4,4,40)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants