Create a constant image filled with a specified color or gray level.
ConstantImage[val, size]
ConstantImage[val, size, "type"]
ImageQ[ConstantImage[0.5, {5, 5}]]
→ TrueConstantImage[0.5, {2, 0}]
→
ConstantImage::bddim: The specified dimensions {2, 0} should be a positive integer or a list of positive integers for every spatial dimension.
ConstantImage[0.5, {2, 0}]