Skip to content

Mask is not reduced in size in code #2

@mrgrist

Description

@mrgrist

Hi,

Looks like you remove the baseline signal from the data matrix, but not from the aif matrix.

%subtraction of baseline signal
sbase=mean(data(1:t1,:,:,:),1);

tmp=data((t1+1):t2,:,:,:)-repmat(mean(data(1:t1,:,:,:),1),[t2-t1 1 1 1]);

data=tmp;

%% Added code here
masktemp = mask(2:end,:,:,:);

clear mask

mask = masktemp;

Can you check that this is correct?

All the best,

James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions