-
Notifications
You must be signed in to change notification settings - Fork 16
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
soma object has no attribute 'pad' #15
Comments
Can you try to lower your threshold? |
It didn't help. I just get more unrelated branches but the soma pad error remains. |
@argunsah I have fixed it by adding the pad and save functions back to the Soma class. Before I commit the updates, do you mind sharing the testing tif? |
also the |
The second issue is caused by the I would recommend to drag the result swc file to a software like Vaa3D to render it for now to bypass this problem. Pls let us know how it goes! |
I tried with --quality option and tried visualizing the .swc using Vaa3D or HBP viewer but didn't see soma. Is this expected? Another question, if I want to use anisotropic diffusion, what is the option for that? It is not specified in the usage help file. |
If you have For image filtering, there is a script I once implemented under I have not used this script since we started to use CNNs to preprocess the image and run rivuletpy on the CNN predicted heatmaps. So adventures expected.
For iterative anisotropic diffusion filter, there is an equavalent plugin in Vaa3D that could be called from commandline |
Hello,
I am tracing a neuron with a clear soma but I get this :
python ./apps/rtrace -f testlila4.tif -t 25 -z 0.5 --soma --save-soma
The shape of the image is (926, 742, 212)
-- Zooming image to 0.50 of original size
(1) -- Detecting Soma...Reconstructing Soma with Simple Mask
(2) --Boundary DT...
(3) --Fast Marching with low quality...
(4) --Compute Gradients...
(5) --Start Backtracking with standard stopping criteria ...
36888.0it [15:03, 24.15it/s] Traceback (most recent call last):
File "./apps/rtrace", line 147, in
soma.pad(crop_region)
AttributeError: 'Soma' object has no attribute 'pad'
36888.0it [15:08, 40.61it/s]
Also when I try to use --view option I get this:
The shape of the image is (926, 742, 212)
-- Zooming image to 0.50 of original size
(1) -- Detecting Soma...Reconstructing Soma with Simple Mask
(2) --Boundary DT...
(3) --Fast Marching with low quality...
(4) --Compute Gradients...
(5) --Start Backtracking with standard stopping criteria ...
26445.0it [09:24, 21.93it/s] -- Finshed: 687.66 sec.
Traceback (most recent call last):
File "./apps/rtrace", line 173, in
s.view()
File "c:\users\argunsah-adm\documents\github\rivuletpy\rivuletpy\swc.py", line 221, in view
viewer.render(return_rgb_array=False)
File "c:\users\argunsah-adm\documents\github\rivuletpy\rivuletpy\utils\rendering3.py", line 177, in render
self.transform.enable()
File "c:\users\argunsah-adm\documents\github\rivuletpy\rivuletpy\utils\rendering3.py", line 96, in enable
glPushMatrix()
File "C:\ProgramData\Anaconda3\lib\site-packages\pyglet-2.0.dev0-py3.7.egg\pyglet\gl\lib.py", line 105, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: b'invalid operation'
Do you have any recommendation about how to solve these issues?
Thanks,
Ali
The text was updated successfully, but these errors were encountered: