Skip to content

Commit

Permalink
LFFiltShiftSum removed dependency on stats toolbox functions nansum etc
Browse files Browse the repository at this point in the history
  • Loading branch information
doda42 committed Apr 18, 2023
1 parent 5dd4a8a commit 0d6ddbb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Copyright (c) 2013-2020 Donald G. Dansereau

Please refer to README.md and LFToolbox.pdf for installation instructions and further information.

---v0.5.2----------------------------------------------------------------------
Minor bug fixes

- LFFiltShiftSum removed dependency on stats toolbox functions nansum etc, should be compatible with newer matlab versions, tested on 2022b

---v0.5.1----------------------------------------------------------------------
Minor bug fixes and improvements

Expand Down
2 changes: 1 addition & 1 deletion Doc/LFToolbox.tex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

\title{
Light Field Toolbox for Matlab\\
{\large v0.5.1}
{\large v0.5.2}
}


Expand Down
8 changes: 4 additions & 4 deletions LFFiltShiftSum.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@

switch( lower(FiltOptions.FlattenMethod) )
case 'sum'
ImgOut = squeeze(nansum(nansum(LF,1),2));
ImgOut = squeeze(sum(LF,[1,2], 'omitnan'));
case 'max'
ImgOut = squeeze(nanmax(nanmax(LF,[],1),[],2));
ImgOut = squeeze(max(LF, [], [1,2], 'omitnan'));
case 'min'
ImgOut = squeeze(nanmin(nanmin(LF,[],1),[],2));
ImgOut = squeeze(min(LF, [], [1,2], 'omitnan'));
case 'median'
t = reshape(LF(:,:,:,:,1:NColChans), [prod(LFSize(1:2)), NewLFSize(3:4), NColChans]);
ImgOut = squeeze(nanmedian(t));
ImgOut = squeeze(median(t, 'omitnan'));
otherwise
error('Unrecognized method');
end
Expand Down
Binary file modified LFToolbox.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Sample data:
* Additional datasets and community links at [dgd.vision](http://dgd.vision/Tools/LFToolbox)

## What's New / Development Plan
v0.5.2: bug fixes, see CHANGELOG.txt

v0.5.1: bug fixes, documentation improvements, see CHANGELOG.txt

v0.5 introduces new features, bug fixes, and performance improvements. Highlights:
Expand Down
2 changes: 1 addition & 1 deletion SupportFunctions/LFToolboxVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
% Copyright (c) 2013-2020 Donald G. Dansereau

function VersionStr = LFToolboxVersion
VersionStr = 'v0.5.1';
VersionStr = 'v0.5.2';

0 comments on commit 0d6ddbb

Please sign in to comment.