Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sessions renamed to trials, function set for 1d and 3d analysis almos…
…t complete
- Loading branch information
1 parent
60c11d4
commit 81ec0db
Showing
8 changed files
with
69 additions
and
70 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
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
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,15 @@ | ||
function coords=getPelletCoords() | ||
[videoName,videoPath] = uigetfile('*.avi'); | ||
videoFile = fullfile(videoPath,videoName); | ||
video = VideoReader(videoFile); | ||
imshow(read(video,50)); | ||
disp('Identify pellet, press ENTER when done...'); | ||
[x,y] = ginput; | ||
close; | ||
coords=[x,y]; | ||
function pelletCoords=getPelletCoords(boundNames) | ||
pelletCoords = {}; | ||
for i=1:size(boundNames,2) | ||
disp(['Navigate to video for "',boundNames{i},'"...']); | ||
[videoName,videoPath] = uigetfile('*.avi'); | ||
videoFile = fullfile(videoPath,videoName); | ||
video = VideoReader(videoFile); | ||
figure; | ||
imshow(read(video,1)); | ||
disp('Identify pellet, press ENTER when done...'); | ||
[x,y] = ginput; | ||
close; | ||
pelletCoords.(boundNames{i}) = [x,y]; | ||
end | ||
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
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 was deleted.
Oops, something went wrong.