Hi Vy,
type help spm_dilate for the correct syntax. You dont input a filename
but a tensor holding your image data.
Cheers,
Bas
On 09/20/2011 05:59 PM, Vy Dinh wrote:
> Thank you Vladimir and Bas,
>
> For the mricron program, do you know the specific command line function that performs the dilation? For spm_dilate, I am not sure what input spm_dilate wants for the image. When I type in spm_dilate('nameofimg.nii'), I get the error message
>
> "ima must be numeric, real, full, and double."
>
> Bas, do you know what spm function I can use to convert the nifti image to the suitable (binary) format? Also, I'm not sure how I can define the kernel to systematically dilate an ROI. Could anyone care to explain briefly or send me links to informational websites?
>
> Thank you,
>
> Vy T.U. Dinh
> Research Assistant, Neurological Sciences
> Rush University Medical Center
> Phone: (312) 563-3853
> Fax: (312) 563-4660
> Email: [log in to unmask]
>
> ________________________________________
> From: Vladimir Bogdanov [[log in to unmask]]
> Sent: Tuesday, September 20, 2011 12:30 AM
> To: Vy Dinh
> Cc: SPM mail list
> Subject: Re: [SPM] Batch dilate roi
>
> Dear Vy Dihn,
>
> Mricron by Chris Rorden is a great tool for VOI construction and manipulation. Try it!
>
> Sincerely yours,
> Vladimir
>
> --- On Tue, 9/20/11, Vy Dinh<[log in to unmask]> wrote:
>
>> From: Vy Dinh<[log in to unmask]>
>> Subject: [SPM] Batch dilate roi
>> To: [log in to unmask]
>> Date: Tuesday, September 20, 2011, 12:18 AM
>> Dear SPMers,
>>
>> Is there a way to batch dilate/erode an roi in SPM? I have
>> been doing it manually using the SPM's ROI tool. However,
>> this application is a tad clunky and takes forever for what
>> seems like an easily automated task. I'm open to using other
>> batch roi dilation methods too so I appreciate any
>> suggestions.
>>
>> Thanks,
>>
>> Vy
>>
|