Skip to content

Commit

Permalink
Fixed missing indices on the pixelwindowsize to ensure it changes wit…
Browse files Browse the repository at this point in the history
…h position. Fixes #1.
  • Loading branch information
Robert F Cooper committed Dec 7, 2022
1 parent efd3a17 commit 5d3f57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Coordinate_Mosaic_Metrics_MAP.m
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@

thisval = statistics{c}.(metriclist{selectedmetric});

rowrange = round(coords(c,2)-(pixelwindowsize/2):coords(c,2)+(pixelwindowsize/2));
colrange = round(coords(c,1)-(pixelwindowsize/2):coords(c,1)+(pixelwindowsize/2));
rowrange = round(coords(c,2)-(pixelwindowsize(c)/2):coords(c,2)+(pixelwindowsize(c)/2));
colrange = round(coords(c,1)-(pixelwindowsize(c)/2):coords(c,1)+(pixelwindowsize(c)/2));

rowrange(rowrange<1) =[];
colrange(colrange<1) =[];
Expand Down

0 comments on commit 5d3f57a

Please sign in to comment.