Skip to content

Commit 3d6bd83

Browse files
committed
channel contingency
1 parent d8c2395 commit 3d6bd83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

+DataHandling/NeuroPALImage.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,12 @@
509509
%colors = round(colors/max(colors(:)));
510510
npalraw = image_data.acquisition.get('NeuroPALImageRaw');
511511
rgbw = npalraw.RGBW_channels.load();
512-
info.RGBW = rgbw+1;
512+
513+
if min(rgbw) <= 0
514+
info.RGBW = rgbw+1;
515+
else
516+
info.RGBW = rgbw;
517+
end
513518

514519
if size(data, 4) < size(info.RGBW(~isnan(info.RGBW)), 1)
515520
info.RGBW = info.RGBW(1:size(data, 4));

0 commit comments

Comments
 (0)