-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from bahanonu/bahanonu/functionUpdates
Misc. improvements, GUI speed-ups, and new options
- Loading branch information
Showing
43 changed files
with
1,068 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function [movieType, supported, movieType2] = getMovieFileType(thisMoviePath) | ||
% Determine how to load movie, don't assume every movie in list is of the same type | ||
% Biafra Ahanonu | ||
% started: 2020.09.01 [14:16:57] | ||
% inputs | ||
% thisMoviePath - String: path to movie file. | ||
% outputs | ||
% movieType - Movie type | ||
% supported - logical, whether movie is supported by CIAtah. | ||
% movieType2 - Second movie type name (e.g. for NWB, where primary is HDF5). | ||
|
||
% changelog | ||
% 2021.08.08 [19:30:20] - Updated to handle CIAtah v4.0 switch to all functions inside ciapkg package. | ||
% 2021.08.13 [02:31:48] - Added HDF5 capitalized file extension. | ||
% 2022.01.04 [12:23:47] - Update all strcmp to endsWith to ensure finding file extension as there are cases where software will export metadata into files with naming schema like NAME.tif.xml for NAME.tif and this can cause issues when using strcmp without endsWith-like checks. | ||
% 2022.01.04 [13:28:05] - Update docs. | ||
% TODO | ||
% | ||
|
||
[movieType, supported, movieType2] = ciapkg.io.getMovieFileType(thisMoviePath,'passArgs', varargin); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function [movieInfo] = getMovieInfo(inputMovie,varargin) | ||
% Wrapper to quickly get movie information. Options are the same as loadMovieList. | ||
% Biafra Ahanonu | ||
% started: 2020.09.29 [13:23:57] | ||
% inputs | ||
% inputMovie - [x y frames] or char string (path to movie). | ||
% outputs | ||
% | ||
|
||
% changelog | ||
% 2021.08.08 [19:30:20] - Updated to handle CIAtah v4.0 switch to all functions inside ciapkg package. | ||
% 2022.01.20 [22:50:25] - Directly call loadMovieList and bypass ciapkg.api. | ||
% TODO | ||
% | ||
|
||
[movieInfo] = ciapkg.io.getMovieInfo(inputMovie,'passArgs', varargin); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function [thisFrame,movieFileID,inputMovieDims] = readFrame(inputMoviePath,frameNo,varargin) | ||
% Fast reading of frame from files on disk. This is an alternative to loadMovieList that is much faster when only a single frame needs to be read. | ||
% Biafra Ahanonu | ||
% started: 2020.10.19 [11:45:24] | ||
% inputs | ||
% inputMoviePath | Str: path to a movie. Supports TIFF, AVI, HDF5, NWB, or Inscopix ISXD. | ||
% frameNo | Int: frame number. | ||
% outputs | ||
% | ||
% Usage | ||
% For non-HDF5 file types, need to open a link to the | ||
% [thisFrame,movieFileID,inputMovieDims] = ciapkg.io.readFrame(inputMoviePath,frameNo); | ||
% Then for the second call, feed in movieFileID and inputMovieDims to improve read speed. | ||
% [thisFrame] = ciapkg.io.readFrame(inputMoviePath,frameNo,'movieFileID',movieFileID,'inputMovieDims',inputMovieDims); | ||
|
||
% changelog | ||
% 2021.06.30 [01:26:29] - Updated handling of no file path character input. | ||
% 2021.07.03 [09:02:14] - Updated to have backup read method for different tiff styles. | ||
% 2021.08.08 [19:30:20] - Updated to handle CIAtah v4.0 switch to all functions inside ciapkg package. | ||
% TODO | ||
% | ||
|
||
|
||
[thisFrame,movieFileID,inputMovieDims] = ciapkg.io.readFrame(inputMoviePath,frameNo,'passArgs', varargin); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
function [movieTmp] = viewAddTextToMovie(movieTmp,inputText,fontSize) | ||
function [movieTmp] = viewAddTextToMovie(movieTmp,inputText,fontSize,varargin) | ||
% Adds text to movie matrix. | ||
% Biafra Ahanonu | ||
% inputs | ||
% inputSignal - input signal (or matrix) | ||
% outputs | ||
% | ||
|
||
[movieTmp] = ciapkg.video.viewAddTextToMovie(movieTmp,inputText,'passArgs', varargin); | ||
[movieTmp] = ciapkg.video.viewAddTextToMovie(movieTmp,inputText,fontSize,'passArgs', varargin); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.