Question: what is imshow in matlab?
Answer: imshow( BW ) displays the binary image BW in a figure. For binary images, imshow displays pixels with the value 0 (zero) as black and 1 as white. imshow( X , map ) displays the indexed image X with the colormap map . A colormap matrix can have any number of rows, but it must have exactly 3 columns.