Closed copypasteearth closed 1 year ago
Hi everyone,
I am working on constructing visualization links to view volumes in neuroglancer and im not sure how to get the segments and segments query part of the link to construct, here is the code your help is greatly appreciated
kwargs_default = defaultdict(lambda: None, kwargs) vol = CloudVolume(layer_path) return Layer( source=SourceClass( url=f'precomputed://{layer_path.split("file://")[-1]}' if data_url_prefix is None else f'precomputed://{data_url_prefix}{layer_path.split("precomputed_volumes/")[-1]}' ), type=TypeEnum(vol.layer_type), tab=Tab("source"), name=f"{vol.layer}", cross_section_render_scale=kwargs_default["cross_section_render_scale"], visible=kwargs_default["visible"], shader_controls=kwargs_default["shader_controls"], pick=kwargs_default["pick"], selected_alpha=kwargs_default["selected_alpha"], object_alpha=kwargs_default["object_alpha"], base_segment_coloring=kwargs_default["base_segment_coloring"], mesh_silhouette_rendering=kwargs_default["mesh_silhouette_rendering"], mesh_render_scale=kwargs_default["mesh_render_scale"], segments=kwargs_default["segments"], segment_query=kwargs_default["segment_query"], color_seed=kwargs_default["color_seed"], segment_default_color=kwargs_default["segment_default_color"], saturation=kwargs_default["saturation"], skeleton_rendering=kwargs_default["skeleton_rendering"], )
Hi! I think this would be a more appropriate question for the neuroglancer repo. I'm not familiar with the Neuroglancer Python API.
Hi everyone,
I am working on constructing visualization links to view volumes in neuroglancer and im not sure how to get the segments and segments query part of the link to construct, here is the code your help is greatly appreciated