Open gdevenyi opened 2 years ago
Hmm... a couple questions:
ImageMath 3 <out.mnc> MajorityVoting <voting_files>
similarly broken?Is ImageMath 3
MajorityVoting similarly broken?
No, it works with both ANTs, and SimpleITK (which is how I did it in the end, on a big high-mem machine)
Did you also alter line 34 in the code?
Yes. Good question.
Can you send me a subset of these files? (Does it happen with only two files with these label sets?)
I can send you everything, its not that many :) Of course I also want to contribute them back to you, since its my optimized Allen-on-Dorr labelset I made.
We have found another issue with voxel_vote producing broken labels. Strangely, it appears to have been introduced by pyminc
changes between versions 0.52 and 0.54. I intend to investigate further shortly (more for the sake of pyminc
than voxel_vote
).
According to git bisect
the voxel_vote issue (unsure if related) on our data was introduced in https://github.com/Mouse-Imaging-Centre/pyminc/commit/5487a477c6036daa80537ffef4ab578852ec9683.
If you are still interested in this issue and have a chance, could you check if this issue is still present with Pyminc 0.56?
I'm putting in files that are properly aligned:![image](https://user-images.githubusercontent.com/3001850/138485519-3324206b-347c-4cd5-b8ed-f74bf752635f.png)
With the following properties:
I've checked and the values are properly integers, with no slice/volume rescaling.
voxel_vote (after adjusting https://github.com/Mouse-Imaging-Centre/minc-stuffs/blob/master/python/voxel_vote#L32 to uint) produces:
A crash on Display, and a broken (wrong location) and "grid-overlayed" output in register![image](https://user-images.githubusercontent.com/3001850/138486360-edbad1cb-596a-4f0f-a086-6e98cdd24b1b.png)