Hi Lijie,

Maybe this is the wrong mailing list, and you were wanting to send this
to the skimage mailing list?

Cheers,

Gaël

On Thu, Jan 03, 2013 at 11:03:35PM +0800, soft.join Huang wrote:
> 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


-- 
    Gael Varoquaux
    Researcher, INRIA Parietal
    Laboratoire de Neuro-Imagerie Assistee par Ordinateur
    NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
    Phone:  ++ 33-1-69-08-79-68
    http://gael-varoquaux.info            http://twitter.com/GaelVaroquaux

------------------------------------------------------------------------------
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