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

Some errors when I using registration #33

Open
WZFish opened this issue Jul 17, 2020 · 1 comment
Open

Some errors when I using registration #33

WZFish opened this issue Jul 17, 2020 · 1 comment

Comments

@WZFish
Copy link

WZFish commented Jul 17, 2020

I try the wholebrain using the code and data in wholebrain website for single section:

regi<-registration(FFC_filename, coordinate=0.38, filter=seg$filter)
and return:
Loading image:/home/wzfish/Downloads/stitched_FFC_section001/stitched_FFC_section001.tif
====== LOADING DONE ======
Resizing to: 0.0168% of original size.
Image type: CV_16U_2
Error in get.contour(file, thresh = brain.threshold, resize = resize, :
OpenCV(4.3.0) /tmp/RtmpHbUcHd/opencv-4.3.0/modules/imgproc/src/thresh.cpp:1529: error: (-215:Assertion failed) src.type() == CV_8UC1 in function 'threshold'

I installed the opencv4.3.0 by RopenCVLite.
Thank you!

@tractatus
Copy link
Owner

Hi

Did you run segmentation and selected a threshold for where to find the brain section in your image?

Without it the algorithm will default to Outsu threshold which requires 8-bit image.

You can check if you have it set by:

seg$filter$brain.threshold

All the best,
Daniel

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

2 participants