Skip to content

Commit

Permalink
channel contingency
Browse files Browse the repository at this point in the history
  • Loading branch information
RR-N committed Apr 23, 2024
1 parent d8c2395 commit 3d6bd83
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion +DataHandling/NeuroPALImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,12 @@
%colors = round(colors/max(colors(:)));
npalraw = image_data.acquisition.get('NeuroPALImageRaw');
rgbw = npalraw.RGBW_channels.load();
info.RGBW = rgbw+1;

if min(rgbw) <= 0
info.RGBW = rgbw+1;
else
info.RGBW = rgbw;
end

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

0 comments on commit 3d6bd83

Please sign in to comment.