Hi, all,

I may have found where the problem is.

When I load nifti data using nibabel, the data would be store in
Fortran-contiguous, and in numpy the data would be store in
C-contiguous for default. The function
skimage.morphology.is_local_maximum() would give different result for the
two different data format.

I think I should report the issue.

Best regards,
Lijie Huang


On Wed, Jan 2, 2013 at 9:11 PM, soft.join Huang <[email protected]> wrote:

> Hi, all,
> I found a weird problem when I load nifti data using nibabel and process
> it with skimage.
> I want to find local maximum voxel in a nifti data using
> skimage.morphology.is_local_maxmimum.
>  And I do above in two different ways:
> 1. >>> data = nibabel.load('test.nii.gz').get_data()
> >>> peaks = skimage.morphology.is_local_maximum(data)
>  2. >>> data = nibabel.load('test.nii.gz').get_data()
> >>> data = data.copy()
> >>> peaks = skimage.morphology.is_local_maximum(data)
>  The two different ways give me two different results, and the second one
> return the right answer.
> I don't know what's wrong with the first one. Hope for your help.
> Best regards,
> Lijie Huang
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to