Coder Social home page Coder Social logo

arrshow's Introduction

%      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 ...
%

arrshow's People

Contributors

hcmh avatar jostkollme avatar srapacchi avatar tsumpf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arrshow's Issues

not able to change colormap in Matlab R2018b

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?

Crashes when updating the postion in the status bar

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:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.