Nice work ! I used this function as an alternative to bwlabel. The only required modification in my code was to take into account the syntax difference : label puts 0 binary values into a connected object. As per the author's 'Important remark', zeros should be replaced by NaNs in this use case.
Hello! I am using the sc() function to overlay two images
1. a greyscale background
2. an image of pH levels with a custom colormap ( range of values is appr. 2.9 to 4 )
The visual result is as intended, however when I show the colorbar() I get the grayscale bar.
I need to show the custom map colorbar.
It is also important that the values are not scaled in 0-1 but remain at 2.9-4.
P.S. I have tried using built in cmaps such as 'prob','hot' and I have the same problem.
18 Nov 2014
Exports figures nicely to a number of vector & bitmap formats.