diff --git a/Coordinate_Mosaic_Metrics_MAP.m b/Coordinate_Mosaic_Metrics_MAP.m index 193fd7f7..76e32908 100644 --- a/Coordinate_Mosaic_Metrics_MAP.m +++ b/Coordinate_Mosaic_Metrics_MAP.m @@ -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) =[];