Lead-DBS
  • Home
  • About
    • Quickstart Primer (Post-OP MR-Scans)
    • Data & Code inclusion philosophy
    • Quickstart Primer (Post-OP CT-Scans)
    • Deep Brain Stimulation
    • Lead Connectome
    • Publications
    • List of Lead-DBS dependencies
    • Citing Lead-DBS
  • News
  • Contact
  • Help/Support
    • Manual
    • Knowledge Base
      • Atlases/Resources
        • Subcortical Atlases (MNI-Space)
        • Cortical Atlas Parcellations (MNI-Space)
        • Macaque Atlases (MNI-Space)
        • The DISTAL atlas
        • FEM-based VTA model
        • Normative Connectomes
      • Lead-DBS Methods
        • Subcortical Electrophysiology Mapping (SEM)
        • AC/PC to MNI conversion
        • Connectivity Benefit Mapping
      • Other Videos
      • Screenshots
      • Walkthrough-Videos
    • Slack User Channel
    • Forum
  • Workshops
    • Past workshops
      • Berlin 2016
      • Shanghai September 2018
      • Hamburg February 2019
    • Berlin September 2019
    • Machine Learning – Berlin September 2019
    • Brisbane February 2020
  • Download
  • Lead-Connectome
  • Search
  • Menu Menu

Move electrode in 3D

You are here: Home1 / Forums2 / Support forum ARCHIVED – Please use Slack Channel instead3 / Move electrode in 3D4

Tagged: 3D, Move

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • 12/27/2020 at 12:18 PM #12151
    macbeth83
    Participant

    Hi is there a way to adjust (shift by x/y/z) the electrode or the segmentation in the 3D view directly?
    Thanks

    12/27/2020 at 12:25 PM #12152
    andreashorn
    Keymaster

    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’);

    12/27/2020 at 12:26 PM #12153
    andreashorn
    Keymaster

    There was at some point someone however who had entered such a function inside the “Reconstruct Electrodes” function. Not sure if that still exists.

  • Author
    Posts
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.

Your Account

Log In
Register

Forum Statistics

Registered Users
131
Forums
1
Topics
185
Replies
607
Topic Tags
81

Subscribe to our newsletter

Latest Tweets

  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @Chencheng_Zhang: Our study demonstrates the beneficial effects of GPi-DBS for treating camptocormia in PD patients in the short term https://t.co/eq03g2oKb2

    3h
  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @ingmatman: As BrainHack Micro2Macro is getting closer, it is time to have a look at the projects proposed so far to (1) get yo… https://t.co/n4vFQcT22o

    7h
  • Tweet Avatar
    leaddbs
    @leaddbs
    Nice study investigating effect of pallidal stimulation on camptocormia in Parkinson's Disease… https://t.co/cPpvX7Kh3F

    21h

Recent Posts

  • Lead-DBS on the cover of NeuroImage
  • Lead-DBS on the cover of Biological Psychiatry
  • Lead-DBS on the cover of Annals of Neurology
  • Crucial methodological updates for Lead-DBS
  • 2nd Lead-DBS Workshop in Shanghai, China

Archives

  • September 2020
  • June 2019
  • November 2018
  • September 2018
  • August 2018
  • March 2018
  • November 2017
  • September 2017
  • July 2017
  • April 2017
  • July 2016
  • June 2016
  • May 2016
  • March 2016
  • December 2015
  • November 2015
  • April 2015
  • January 2015
  • December 2014
  • October 2014
  • September 2014
  • July 2014
  • June 2014

Impressum & Datenschutzerklärung

Scroll to top