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)

improc.common.typevalue module

improc.common.typevalue.get_drange(dtype)[source]

This also assumes that image are considered where by convention for floats values are stored within range 0.0 to 1.0.

improc.common.typevalue.peakvalue(A, dtype=None)[source]

Find peak value in matrix

Find peak value in matrix

Parameters:A ({numpy array}) – Data for finding peak value
Returns:Peak value.
Return type:number

Module contents