tsumpf / arrshow Goto Github PK
View Code? Open in Web Editor NEWarrayShow: A Matlab image viewer for multidimensional complex data (e.g. MRI images)
License: Boost Software License 1.0
arrayShow: A Matlab image viewer for multidimensional complex data (e.g. MRI images)
License: Boost Software License 1.0
% Copyright (C) 2009-2013 Biomedizinische NMR Forschungs GmbH % http://www.biomednmr.mpg.de % Author: Tilman Johannes Sumpf <[email protected]> % % Distributed under the Boost Software License, Version 1.0. % (See accompanying file LICENSE_1_0.txt or copy at % http://www.boost.org/LICENSE_1_0.txt) %% before the first run, we need to register some paths for arrayShow % (this needs to be executed only once from within the arrayShow base folder) disp('Adding arrShow folders to path'); arrShow.registerPaths(); %% Example: %%%%%%%%%%%%%%%%%%%%% % create multi-echo, multi-frame, mutli-coil testdata data1 = createMultiframeTestphan; % do a standard Fourier reconstruction img1 = asDataClass.mrIfft(data1); % notice that the data is a 5-dimensional array with % size(img1, 1) = 64 = read direction % size(img1, 2) = 64 = phase direction % size(img1, 3) = 16 = echoes % size(img1, 4) = 30 = movie frames % size(img1, 5) = 4 = coils disp(size(img1)); % store some informations in a parameter struct par.patient = 'Phantom'; par.study = 'Test'; par.code = 1.23; %% display the images with arrayShow as(img1, 'info', par); %...try using the mouse wheel or the + and - keys to cycle through the different echoes. % The windowing can be changed by pressing the 3rd mouse button. % Doubleclick to reset windowing ... %
I am using arrShow in Matlab R2018b, and the colormap does not change after I choose one colormap different than the current one in the View->Colormap menu. Has anybody encountered the same problem?
Thanks for the package.
I wonder if there is any demo. Where I should start using this code?
Thanks you.
Here is the error I got:
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Error in asCursorPosClass/setPosition (line 236)
obj.setPosText([posY, posX],img(posY,posX));
Error in arrShow/updFig (line 3607)
obj.cursor.setPosition(obj.cursor.getPosition(),true);
Error in arrShow/fpResize (line 3374)
obj.updFig;
Error in arrShow>@(src,evnt)obj.fpResize (line 533)
'ResizeFcn',@(src, evnt)obj.fpResize);
Error while evaluating Figure SizeChangedFcn.
The posY is zero when the error occurs. However, the source of the error is in arrShow.m(line 4066). rounding values<1 yields 0. Could you you ceil() instead of round()?
' if arrShow.mouseInsideAxes(position, currAxes);'
' x = round(position(1,1));'
'y = round(position(1,2));'
'obj.cursor.setPosition([y,x],false);'
'break;'
'end'
Thank you very much for this toolboox:)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.