makeimg.bars¶
-
makeimg.
bars
(N, ns=0.0)[source]¶ Create a piece-wise linear gray-scale image of rectangles with gradually increasing intensities
Parameters: N : int
Image dimension (image is an N-by-N array)
ns : float
Noise level applied to the image, i.e., 0.1 = 10% noise, 0.2 = 20% noise, etc. Thus ns has to satisfy 0 <= ns <= 1. By default ns = 0.0.
Returns: It : NumPy 2darray
Array representation of the image (2D array)
See also
spikes
- piece-wise linear test image of four squares
manysquares
- piece-wise linear test image of squares
tgvtest
- gray scale image widely used to illustrate weaknesses of total variation denoising