archive-org.com » ORG » C » CHRONUX.ORG

Total: 412

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Description of videoWriter
    vw close vw SEE ALSO buildVideoMex videoWriter addframe videoWriter close videoReader Copyright c 2006 Gerald Dalley See MIT txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SUBFUNCTIONS function n mexName plugin function plugin pluginArgs parsePlugin plugin pluginArgs SOURCE CODE 0001 function vw videoWriter url varargin 0002 videoWriter class constructor 0003 Creates a object that writes video files We use a plugin 0004 architecture in the backend to do the actual writing For example 0005 on Windows DirectShow will typically be used and on Linux the 0006 ffmpeg library is often used 0007 0008 vw videoWriter url 0009 Opens the given video file for writing using the default plugin 0010 On Windows DirectShow is used by default and on Linux 0011 ffmpegPopen2 is used by default For most plugins the url will 0012 really be a filename 0013 0014 vw videoWriter url plugin pluginName 0015 vw videoWriter url pluginName 0016 Opens the file using the specified plugin implementation 0017 Available plugins include 0018 0019 DirectShow preferred method on Windows 0020 Only available on Windows 0021 See INSTALL dshow txt for installation instructions 0022 The URL parameter should be a filename 0023 As a convenience all forward slashes are automatically 0024 converted to backslashes 0025 0026 ffmpegPopen2 safe method on Linux 0027 Only supported on GNU Linux might work on BSD systems too like Mac 0028 OS X but this is untested 0029 See INSTALL ffmpeg txt for installation instructions 0030 Creates a separate server process to communicate with the 0031 ffmpeg libraries 0032 Works when the system s version of GCC is very different from 0033 the one that MathWorks used to compile Matlab 0034 Isolates ffmpeg errors so they typically cannot crash 0035 Matlab 0036 May allow for more flexible distribution terms for your code 0037 when it uses videoIO ffmpeg may be compiled with either 0038 the LGPL or GPL license 0039 0040 ffmpegDirect low overhead method on Linux 0041 same as ffmpegPopen2 but the ffmpeg libraries are loaded 0042 directly by the MEX file 0043 May not work if MathWorks and your version of GCC are 0044 incompatible 0045 Slightly faster than ffmpegPopen2 since there is no 0046 interprocess communication overhead 0047 0048 vw videoWriter url param arg 0049 Allows the user to pass extra configuration arguments to plugin 0050 At present all parameter names are case sensitive but in the 0051 future they may become case insensitive 0052 0053 The following parameters are supported by current plugins 0054 0055 Plugin 0056 Parameter ffmpeg DShow Implementation Notes 0057 0058 width X X Width of the encoded video Most 0059 codecs require width to be divisible 0060 by 2 4 or 8 Most users will want 0061 to explicitly pass this parameter 0062 The addframe method will 0063 automatically resize any images 0064 according to the value chosen here 0065 or a default value if none is 0066 specified here

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/@videoWriter/videoWriter.html (2015-03-27)
    Open archived version from archive


  • Description of createdatamatc
    1 uses a window starting 1 Fs samples before E and ending 1 Fs samples after E Note that E Fs and win must have consistent units Outputs data event triggered data CROSS REFERENCE INFORMATION This function calls This function is called by coherencysegc Multi taper coherency cross spectrum and individual spectra with segmenting continuous process mtspecgramtrigc Multi taper event triggered time frequency spectrum continuous process mtspectrum of spectrumc Multi taper segmented second spectrum spectrum of the log spectrum for a continuous process mtspectrumsegc Multi taper segmented spectrum for a univariate continuous process mtspectrumtrigc Multi taper event triggered time frequency spectrum continuous process SOURCE CODE 0001 function data createdatamatc data E Fs win 0002 Helper function to create an event triggered matrix from univariate 0003 continuous data 0004 Usage data createdatamatc data E Fs win 0005 Inputs 0006 data input time series as a column vector required 0007 E events to use as triggers required 0008 Fs sampling frequency of data required 0009 win window around triggers to use data matrix winl winr required 0010 e g 1 1 uses a window starting 1 Fs samples before E and 0011 ending 1 Fs samples after E 0012 Note that E

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/continuous/createdatamatc.html (2015-03-27)
    Open archived version from archive

  • Description of nex_marker
    empty string will use File Open dialog 0008 varname variable name 0009 0010 continuous a d data come in fragments Each fragment has a timestamp 0011 and a number of a d data points The timestamp corresponds to 0012 the time of recording of the first a d value in this fragment 0013 All the data values stored in the vector d 0014 OUTPUT 0015 n number of markers 0016 nm number of fields in each marker 0017 nl number of characters in each marker field 0018 ts array of marker timestamps in seconds 0019 names names of marker fields nm 64 character array 0020 m character array of marker values n nl nm 0021 0022 n 0 0023 nm 0 0024 nl 0 0025 ts 0 0026 m 0 0027 names 0 0028 0029 if nargin 2 0030 disp 2 input arguments are required 0031 return 0032 end 0033 0034 if ischar filename 0 0035 disp input arguments should be character arrays 0036 return 0037 end 0038 0039 if ischar varname 0 0040 disp input arguments should be character arrays 0041 return 0042 end 0043 0044 if isempty filename 0045 fname pathname uigetfile nex Select a Nex file 0046 filename strcat pathname fname 0047 end 0048 0049 fid fopen filename r 0050 if fid 1 0051 disp cannot open file 0052 return 0053 end 0054 0055 disp strcat file filename 0056 magic fread fid 1 int32 0057 version fread fid 1 int32 0058 comment fread fid 256 char 0059 freq fread fid 1 double 0060 tbeg fread fid 1 int32 0061 tend fread fid 1 int32 0062 nvar fread fid 1 int32 0063 fseek fid 260 cof 0064 name zeros 1 64 0065 found 0 0066 for i 1 nvar 0067 type fread fid 1 int32 0068 var version

    Original URL path: http://www.chronux.org/Documentation/chronux/dataio/HowToReadNexFilesInMatlab/nex_marker.html (2015-03-27)
    Open archived version from archive

  • Description of createdatamatpb
    window starting 1 sec before E and ending 1 sec after E if E is in secs Note that E Fs and win must have consistent units Outputs data event triggered data CROSS REFERENCE INFORMATION This function calls This function is called by coherencysegpb Multi taper coherency cross spectrum and individual spectra computed by segmenting mtspecgramtrigpb Multi taper event triggered time frequency spectrum binned point process mtspectrumsegpb Multi taper segmented spectrum for a univariate binned point process mtspectrumtrigpb Multi taper event triggered time frequency spectrum binned point process SOURCE CODE 0001 function data createdatamatpb data E Fs win 0002 0003 Helper function to create an event triggered matrix from a single 0004 channel of data 0005 Usage data createdatamatpb data E Fs win 0006 Inputs 0007 data input time series as a single vector required 0008 E events to use as triggers required 0009 Fs sampling frequency of data required 0010 win window around triggers to use data matrix winl winr required 0011 e g 1 1 uses a window starting 1 sec before E and 0012 ending 1 sec after E if E is in secs 0013 Note that E Fs and win must have consistent units 0014 0015

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/pointbinned/createdatamatpb.html (2015-03-27)
    Open archived version from archive

  • Description of getinfo
    An individual videoReader plugin like the ffmpegPopen2 plugin may choose to allow the user to try reading the frames that might be hidden or it may choose not to allow even trying to read them like the DirectShow plugin Due to limitations in some file formats it is not always possible to determine all of these values or sometimes they are not constant In these cases numerical values are given a value of NaN and string values are blank SEE ALSO videoReader Copyright c 2006 Gerald Dalley See MIT txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SOURCE CODE 0001 function info getinfo vr 0002 INFO GETINFO VR 0003 Returns a structure whose fields contain information about the opened 0004 video object The minimum set of fields in the INFO structure is 0005 shown below 0006 url String specifying the data source in the format preferred 0007 by the plugin being used Sometimes this will be a true 0008 URL sometimes it will be a filename 0009 0010 fps Non negative number indicating the number of frames per 0011 second 0012 0013 height Integer indicating the height of the video frames in 0014 pixels 0015 0016 width Integer indicating the width of the video frames in pixels 0017 0018 numFrames Integer indicating an estimate of the total number of 0019 frames in the video For typical videos this number is 0020 exact Users may attempt to read more than numFrames 0021 frames at their own risk If nHiddenFinalFrames is 0022 non zero this will typically fail meaning next step seek 0023 will return 0 or worse corrupted data such as an 0024 all black frame may be returned by the codec

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/@videoReader/getinfo.html (2015-03-27)
    Open archived version from archive

  • Description of nex_ts
    filename if empty string will use File Open dialog 0008 varname variable name 0009 OUTPUT 0010 n number of timestamps 0011 ts array of timestamps in seconds 0012 0013 n 0 0014 ts 0 0015 0016 if nargin 2 0017 disp 2 input arguments are required 0018 return 0019 end 0020 0021 if ischar filename 0 0022 disp input arguments should be character arrays 0023 return 0024 end 0025 0026 if ischar varname 0 0027 disp input arguments should be character arrays 0028 return 0029 end 0030 0031 if isempty filename 0032 fname pathname uigetfile nex Select a Nex file 0033 filename strcat pathname fname 0034 end 0035 0036 fid fopen filename r 0037 if fid 1 0038 disp cannot open file 0039 return 0040 end 0041 0042 disp strcat file filename 0043 magic fread fid 1 int32 0044 version fread fid 1 int32 0045 comment fread fid 256 char 0046 freq fread fid 1 double 0047 tbeg fread fid 1 int32 0048 tend fread fid 1 int32 0049 nvar fread fid 1 int32 0050 fseek fid 260 cof 0051 name zeros 1 64 0052 found 0 0053 for i 1 nvar 0054 type fread fid 1 int32 0055 var

    Original URL path: http://www.chronux.org/Documentation/chronux/dataio/HowToReadNexFilesInMatlab/nex_ts.html (2015-03-27)
    Open archived version from archive

  • Description of createdatamatpt
    win and data must have consistent units Outputs data event triggered data as a structural array times are stored relative to the E winl CROSS REFERENCE INFORMATION This function calls This function is called by coherencysegpt Multi taper coherency computed by segmenting two univariate point processes into chunks mtspecgramtrigpt Multi taper event triggered time frequency spectrum point process times mtspectrumsegpt Multi taper segmented spectrum for a univariate binned point process mtspectrumtrigpt Multi taper time frequency spectrum point process times SOURCE CODE 0001 function data createdatamatpt data E win 0002 Helper function to create an event triggered matrix from a single 0003 channel of spike times 0004 Usage data createdatamatpt data E win 0005 Inputs 0006 data input spike times as a structural array or as a column vector required 0007 E events to use as triggers required 0008 win window around triggers to use data matrix winl winr required 0009 e g 1 1 uses a window starting 1 sec before E and 0010 ending 1 sec after E if E and data are in secs 0011 Note that E win and data must have consistent units 0012 Outputs 0013 data event triggered data as a structural array times are

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/pointtimes/createdatamatpt.html (2015-03-27)
    Open archived version from archive

  • Description of getinfo
    is called by SOURCE CODE 0001 function info getinfo vw 0002 INFO GETINFO VW 0003 Returns a structure whose fields contain information about the opened 0004 video object This structure may be flattened to a cell array and used 0005 with the videoWriter constructor to recreate the current video file 0006 0007 SEE ALSO 0008 videoWriter 0009 0010 Copyright c 2006 Gerald Dalley 0011 See MIT txt in the installation

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/@videoWriter/getinfo.html (2015-03-27)
    Open archived version from archive



  •