GithubHelp home page GithubHelp logo

arnodelorme / eegbrowser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aojeda/eegbrowser

1.0 0.0 1.0 1.53 MB

The EEGBrowser is meant to be a modern drop-in replacement for EEGLAB's eegplot function. The EEGBrowser widget is based on MoBILAB's visualization functions.

License: Other

MATLAB 100.00%

eegbrowser's Introduction

EEGBrowser

The EEGBrowser is intended to be a modern drop-in replacement for EEGLAB's eegplot function based on MoBILAB's visualization functions.

EEGBrowser

Install

  • Download
  • Uncompress
  • Rename the folder as "EEGBrowser", and place it in your eeglab/plugins folder.
  • Run eeglab or eeglab redraw (if you don't want to clean your current EEG structure)

Plugin

Note: Although EEG Browser is based on MoBILAB, the latter is not needed for it to work.

Example

Plot channel data (default)

pop_eegbrowser(EEG);

or

pop_eegbrowser(EEG,1);

Plot IC activations:

pop_eegbrowser(EEG,0);

To get the handle to the widget (useful for adding your own customizations):

hBrowser = pop_eegbrowser(EEG,0);

Other features:

  • Use the << and >> keys to move to the next page centered around the selected event marker.
  • Use - or + buttons to reduce or increase the scale respectively.
  • Click on the figure and use - or + keys in your keypad to reduce or increase the scale respectively.
  • Use the mouse to select bad trials. See example here.

Developers

If you want to extend the capabilities of the EEG Browser follow these steps:

  • Create a class inheriting from EEGBrowser, let's call it MyEEGBrowser. See example below.
  • Then create your own pop_myeegbrowser or modify pop_eegbrowser here to call your class passing in the EEG structure.

Example of creating a new browser class

classdef MyEEGBrowser < EEGBrowser
    properties
      % Declare the properties that you need here for plotting.
      % Properties store data that is used by the class for plotting.
    end

    % Constructor
    function obj = MyEEGBrowser(EEG)

      % Call EEGBrowser's constructor
      obj@EEGBrowser(EEG);

      %--
      % Do your thing here. You can for instance add buttons, change default
      % settings, and so on.
      hButton = uicontrol('Parent', obj.figureHandle,...
                          'Style', 'pushbutton',...
                          'TooltipString','This does something',...
                          'Units','Normalized',...
                          'Callback',@onPush);
      %--
    end
end

% Define your callbacks
function onPush(src,evnt)
  obj = src.Parent.UserData;  % Retrieve your MyEEGBrowser object
                              % so that you can modify its properties
  %--
  % Implement the callback here.
  %--
end

Save the code above in MyEEGBrowser.m and that's it. See this example for learning more about MATLAB classes.

eegbrowser's People

Contributors

aojeda avatar nucleuscub avatar

Stargazers

 avatar

Forkers

darthroro

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.