Dear Aser,
I assume that you are trying to add a colourbar by just typing
'colorbar' in MATLAB? If so, try the following instead:
h = 1;
global st
V = spm_read_vols(spm_vol(st.vols{h}.fname));
spm_orthviews('window',h,[min(V(:)) max(V(:))]);
p = get(st.vols{h}.ax{1}.ax,'Position');
cbar = axes('Parent',st.fig,'Box','on',...
'Position',[(p(1)+p(3)+0.05) (p(2)+0.005) 0.05 (p(4)-0.01)]);
image([0 1],st.vols{h}.window,(1:64)','Parent',cbar);
set(cbar,'YDir','normal','XTickLabel',[],'XTick',[]);
It's not very generic but might be what you are looking for in a simple
setting.
Best regards,
Guillaume.
On 23/02/15 12:22, Aser A wrote:
> Dear Guillaume,
>
> I am only facing one problem than I usually face it when I use check
> reg or SPM in general. When I add a colour bar, it always generates
> values from 0 to 60. I cannot change them and this does not reflect the
> true values. How can I solve this ?
>
> THanks
>
> Aser
>
> On Mon, Feb 23, 2015 at 12:04 PM, Aser A <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
> Brilliant ...SPM 12 did it!
>
> On Mon, Feb 23, 2015 at 11:39 AM, Guillaume Flandin
> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>
> Hi Aser,
>
> if it's only for display purposes, maybe the Contour option of
> SPM12's
> CheckReg might be sufficient for your needs?
> Select the underlay image and your ROI mask in CheckReg, change the
> interpolation of the mask to Nearest Neighbour, and from the
> contextual
> menu of the mask, select: Contour > Display onto > All but current
>
> Best regards,
> Guillaume.
>
>
> On 23/02/15 11:31, Remi gau wrote:
> > MIPAV should allow you to do this (and much more) as well (though it can
> > be a bit of an overkill to use MIPAV only for this).
> >
> > Best
> >
> > *Remi Gau
> >
> > *
> > On 23/02/15 11:10, Aser A wrote:
> >> Thanks Alexander,
> >>
> >> I could not find links for these tools. Can this as well performed by
> >> MRIcron. I tried but could not find a way.
> >>
> >> On Mon, Feb 23, 2015 at 10:18 AM, Alexander Hammers
> >> <[log in to unmask]
> <mailto:[log in to unmask]>
> >> <mailto:[log in to unmask]
> <mailto:[log in to unmask]>>> wrote:
> >>
> >> Dear Aser,
> >>
> >>
> >> I wouldn’t know how to do that in SPM; it’s possible in more
> >> ROI-orientated software like rviewqt (Colin Studholme), rview
> >> (Daniel Rueckert), Analyze (commercial), PMOD (commercial).
> >>
> >> All the best,
> >>
> >> A
> >>
> >>
> >> -----------------------------------------
> >> Alexander Hammers, MD PhD
> >>
> >> Professor (Honorary Consultant) of Imaging and Neuroscience
> >> Head of PET Imaging Centre
> >> Division of Imaging Sciences and Biomedical Engineering
> >> King's College London
> >> St Thomas' Hospital, London
> >>
> >> Telephone+44-(0)20 7188 8364 <tel:%2B44-%280%2920%207188%208364>
> >> <tel:%2B44-%280%2920%207188%208364> (PA Viviane Schroeder)
> >> [log in to unmask]
> <mailto:[log in to unmask]>
> <mailto:[log in to unmask]
> <mailto:[log in to unmask]>>
> >>
> >>
> >> On 23 Feb 2015, at 08:56, fMRI <[log in to unmask] <mailto:[log in to unmask]>
> >> <mailto:[log in to unmask] <mailto:[log in to unmask]>>>
> wrote:
> >>
> >>> Hello all,
> >>>
> >>> Is there any way of making the ROI unfilled and just
> making the
> >>> edge of it appears?
> >>>
> >>> Regards,
> >>>
> >>> Aser
> >>
> >>
> >
>
> --
> Guillaume Flandin, PhD
> Wellcome Trust Centre for Neuroimaging
> University College London
> 12 Queen Square
> London WC1N 3BG
>
>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|