Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Support forum ARCHIVED – Please use Slack Channel instead’ is closed to new topics and replies.
Hi is there a way to adjust (shift by x/y/z) the electrode or the segmentation in the 3D view directly?
Thanks
I don’t think so – you’d need to use code and apply the same transform to all entries, a bit like this (rename the ea_reconstruction.mat file to ea_reconstruction_unmod.mat):
load ea_reconstruction_unmod
shift=[7,5,5]; % shift to introduce to electrode (could be negative, as well).
for side=1:2
reco.mni.markers(side).head=reco.mni.markers(side).head+shift;
reco.mni.markers(side).tail=reco.mni.markers(side).tail+shift;
reco.mni.markers(side).x=reco.mni.markers(side).x+shift;
reco.mni.markers(side).y=reco.mni.markers(side).y+shift;
reco.mni.coords_mm{side}=reco.mni.coords_mm{side}+repmat(shift,4,1);
reco.mni.trajectory{side}=reco.mni.trajectory{side}+repmat(shift,size(reco.mni.trajectory{side},1),1);
end
save(‘ea_reconstruction.mat’,’reco’);
There was at some point someone however who had entered such a function inside the “Reconstruct Electrodes” function. Not sure if that still exists.