Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 peak activation and the coordinates

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wang Posted - Feb 08 2005 : 1:18:59 PM
Hi,

Does anyone have an easier way to show peak T value of a T-map in a certain region and the corresponding coordinates? The T-map was generated using BIAC scripts with bxh header, not spm format. Many thanks in advance.


Lihong
2   L A T E S T    R E P L I E S    (Newest First)
charles.michelich Posted - Feb 09 2005 : 10:07:31 AM
Lihong,

You can also do this in MATLAB using the max and ind2sub commands. Here is an example using an IRIS ROI:
% Read ROI and tmap
roi = readmr('ROI.bxh');
tmap = readmr('Tmap.bxh');
if ~isequal(size(roi.data), size(tmap.data))
  error('roi and tmap must be the same size');
end

% Find the voxels in the ROI 
roiIndex = 1;  % ROI from the IRIS mseg to process
voxels = find(roi.data == roiIndex);

% Find the max and the location of the max in the ROI
[val,loc] = max(tmap.data(voxels));
[x,y,z] = ind2sub(size(roi.data), voxels(loc));
disp(sprintf('Max of %g found at [%d,%d,%d]', val, x, y, z));
Chuck
jim.voyvodic Posted - Feb 08 2005 : 1:59:10 PM
Lihong,
I have a command in fScan that will find peak values and their locations. The command in its simplest form is:
fscan inputbxhfile -e adapt
where inputbxhfile is the data set you want to find the maximum
value for. It should be in 16-bit integer format.
By default it will find the peak in the whole volume, but it will also find peaks for multiple ROIs if you have an ROI map, as:
fscan inputbxhfile -e adapt -m roimap
This runs on Golgi (Windows too but it's easier on Golgi).

If you want to try this approach on your data let me know. You may need to add a command or 2 first to make sure your maps are in the appropriate form.

Jim

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.22 seconds. Snitz Forums 2000