improc.common package¶
Submodules¶
improc.common.randomfunc module¶
-
improc.common.randomfunc.
randperm
(start, end, number)[source]¶ randperm function like matlab
genarates diffrent random interges in range [start, end)
Parameters: - start ({integer}) – start sampling point
- end ({integer}) – end sampling point
- number ({integer}) – random numbers
-
improc.common.randomfunc.
randperm2d
(H, W, number, population=None, mask=None)[source]¶ randperm 2d function
genarates diffrent random interges in range [start, end)
Parameters: - H ({integer}) – height
- W ({integer}) – width
- number ({integer}) – random numbers
- population ({list or numpy array(1d or 2d)}) – part of population in range(0, H*W)