Skip to content

Commit

Permalink
Fixed Rectangle Transparency Issue
Browse files Browse the repository at this point in the history
Fixed Rectangle Transparency Issue
  • Loading branch information
DrCoffey committed Aug 14, 2024
1 parent da94afb commit 1be0267
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Functions/CalculateStats.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@

%% Ridge Detection
% Calculate entropy at each time point
try
stats.Entropy = geo_mean(I,1) ./ mean(I,1);
catch
warning('The function "geomean" has been renamed "geo_mean". Please update MATLAB to before it is deiscontinued');
stats.Entropy = geomean(I,1) ./ mean(I,1);
end


stats.Entropy = smooth(stats.Entropy,0.1,'rlowess')';

Expand Down
2 changes: 0 additions & 2 deletions Functions/initialize_display.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ function initialize_display(hObject, eventdata, handles)
% Rectangle that shows the current position in the spectrogram
handles.currentWindowRectangle = rectangle(handles.spectogramWindow,...
'Position',[0,0,0,0],...
'FaceColor', [1, 1, 1],...
'FaceAlpha', 0.1,...
'EdgeColor', [1, 1, 1, 1], 'LineWidth',1.5,...
'LineStyle','--',...
'PickableParts', 'none');
Expand Down
2 changes: 1 addition & 1 deletion Functions/render_call_position.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
% Initialize the timestamp text and current call line
handles.CurrentCallLineText = text(0, 20, ' ', 'Color', 'W', 'HorizontalAlignment', 'center', 'Parent', handles.detectionAxes);
handles.CurrentCallLinePosition = line([0,0],[0 1],'LineWidth',3,'Color','g','Parent', handles.detectionAxes,'PickableParts','none');
handles.CurrentCallWindowRectangle = rectangle('Position',[0 0 1 1], 'Parent',handles.detectionAxes,'LineWidth',1,'EdgeColor',[1 1 1 1],'FaceColor',[1 1 1 ],'FaceAlpha',0.1);
handles.CurrentCallWindowRectangle = rectangle('Position',[0 0 1 1], 'Parent',handles.detectionAxes,'LineWidth',1,'EdgeColor',[1 1 1 1]);

end

Expand Down

0 comments on commit 1be0267

Please sign in to comment.