Skip to content

Commit

Permalink
ENH: Sevral changes and enhancements.
Browse files Browse the repository at this point in the history
  • Loading branch information
francopestilli committed Sep 12, 2016
1 parent f053eef commit 67e3b63
Show file tree
Hide file tree
Showing 34 changed files with 4 additions and 9 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified compute/mbaComputeFiberLengthDistribution.m
100644 → 100755
Empty file.
Empty file modified compute/mbaComputeFibersCoordsDistribution.m
100644 → 100755
Empty file.
Empty file modified compute/mbaComputeFibersOutliers.m
100644 → 100755
Empty file.
Empty file modified compute/mbaRemoveFiberLengthOutliers.m
100644 → 100755
Empty file.
Empty file modified compute/mbaRemoveFibersCoordsDistributionOutlier.m
100644 → 100755
Empty file.
Empty file modified display/mbaBuildFascicleFrame.m
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions display/mbaDisplayBrainSlice.m
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function h = mbaDisplayBrainSlice(nifti, slice, cmap, rescale,alpha)
function h = mbaDisplayBrainSlice(nifti, slice, ax, cmap, rescale,alpha)
%
% Add a slice from a nifti image to a matlab plot
%
Expand Down Expand Up @@ -49,22 +49,22 @@
if find(plane) == 1
% Add the img to the current 3D plot
z_dims = [z.min z.max; z.min z.max];
h = surf([x.min x.max],[y.min y.max],z_dims,...
h = surf(ax,[x.min x.max],[y.min y.max],z_dims,...
image_rgb,'facecolor','texture','faceAlpha',alpha);
elseif find(plane) == 2
% The img dimensions must be permuted to match what is expected in
% surf
image_rgb = permute(image_rgb,[2 1 3]);
% Add the img to the current 3D plot
z_dims = [z.min z.min; z.max z.max];
h = surf([x.min x.max],[y.min y.max],z_dims,...
h = surf(ax,[x.min x.max],[y.min y.max],z_dims,...
image_rgb,'facecolor','texture','FaceAlpha',alpha);
elseif find(plane) == 3
% The img dimensions must be permuted to match what is expected in
% surf
image_rgb = permute(image_rgb,[2 1 3]);
% Add the img to the current 3D plot
h = surf([x.min x.max],[y.min y.max],repmat(z.min, [2 2]),...
h = surf(ax, [x.min x.max],[y.min y.max],repmat(z.min, [2 2]),...
image_rgb,'facecolor','texture','FaceAlpha',alpha);
end

Expand Down
5 changes: 0 additions & 5 deletions display/mbaDisplayConnectome.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
tic
fprintf('[%s] Displaying connectome... ',mfilename);

% Handling parallel processing
poolwasopen=1; % if a matlabpool was open already we do not open nor close one
if (matlabpool('size') == 0), matlabpool open; poolwasopen=0; end

% Check if a fgure handle was passed in, otherwise open a figure
if notDefined('figureHandle'), figureHandle = figure('Renderer','OpenGL');end

Expand Down Expand Up @@ -137,7 +133,6 @@
% Done
t = toc;
fprintf('done in %2.3f seconds at %2.3f ms/fiber.\n',t,(t/numFibers)*1000);
keyboard

end % end MAIN function

Expand Down
Empty file modified display/mbaDisplayFasciclesGroup.m
100644 → 100755
Empty file.
Empty file modified display/mbaDisplayOverlay.m
100644 → 100755
Empty file.
Empty file modified display/mbaFiberSplitLoops.m
100644 → 100755
Empty file.
Empty file modified externals/fs_annotationToLabelFiles.m
100644 → 100755
Empty file.
Empty file modified externals/fs_labelFileToNiftiRoi.m
100644 → 100755
Empty file.
Empty file modified externals/fs_loadCtab.m
100644 → 100755
Empty file.
Empty file modified externals/fs_read_annotation.m
100644 → 100755
Empty file.
Empty file modified t_mba_segment_tract.m
100644 → 100755
Empty file.
Empty file modified utilities/build3Dframe.m
100644 → 100755
Empty file.
Empty file modified utilities/frame.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaBuild3Dframe.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaBuildSurfaceFromFrame.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaCheckSlice.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaGetResizedSliceImage.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaGetSliceFromNifti.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaGetSliceView.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaImageHistogramClip.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaMakeImageFromNiftiSlice.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaMakeOverlay.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaNormalize.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaResampleToNifti.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaReslice.m
100644 → 100755
Empty file.
Empty file modified utilities/mbaXformAcpcSlice2ImageIndices.m
100644 → 100755
Empty file.

0 comments on commit 67e3b63

Please sign in to comment.