/cts/suite/audio_quality/ |
BUILD.txt | 4 - Python SciPy, NumPy 5 sudo apt-get install python-scipy python-numpy python-matplotlib
|
/cts/apps/CameraITS/pymodules/its/ |
dng.py | 15 import numpy namespace 16 import numpy.linalg namespace 46 CM: The 3x3 ColorMatrix for the specified illuminant, as a numpy array 47 FM: The 3x3 ForwardMatrix for the specified illuminant, as a numpy array 55 W = numpy.array([ 62 HH = numpy.array([ 73 H_D65 = numpy.array([ 77 H_A = numpy.array([ 89 G = numpy.array([[gains[0],0,0], [0,gains[1],0], [0,0,gains[3]]]) 92 S = numpy.array([ccm[0:3], ccm[3:6], ccm[6:9]] [all...] |
image.py | 22 import numpy namespace 29 DEFAULT_YUV_TO_RGB_CCM = numpy.matrix([ 34 DEFAULT_YUV_OFFSETS = numpy.array([0, 128, 128]) 36 DEFAULT_GAMMA_LUT = numpy.array( 40 DEFAULT_INVGAMMA_LUT = numpy.array( 108 img: A raw-10 image, as a uint8 numpy array. 111 Image as a uint16 numpy array, with all row padding stripped. 118 msbs = numpy.delete(img, numpy.s_[4::5], 1) 119 msbs = msbs.astype(numpy.uint16 [all...] |
/external/chromium_org/third_party/cython/src/Cython/Build/Tests/ |
TestInline.py | 7 import numpy namespace 55 import numpy namespace 56 a = numpy.ndarray((10, 20)) 58 self.assertEquals(safe_type(a), 'numpy.ndarray[numpy.float64_t, ndim=2]')
|
/cts/apps/CameraITS/tests/scene0/ |
test_gyro_bias.py | 25 import numpy namespace 51 times = numpy.array([(e["time"] - gyro_events[0]["time"])/1000000000.0 53 xs = numpy.array([e["x"] for e in gyro_events]) 54 ys = numpy.array([e["y"] for e in gyro_events]) 55 zs = numpy.array([e["z"] for e in gyro_events]) 74 assert(numpy.var(samples) < VAR_THRESH)
|
/cts/suite/audio_quality/test_description/conf/ |
check_conf.py | 18 import numpy as np 20 from numpy import *
|
/cts/apps/CameraITS/tests/inprog/ |
test_black_level.py | 22 import numpy namespace 69 its.image.write_image(numpy.absolute(uimg - 0.5) * 2, 75 yhist,_ = numpy.histogram(yimg*255, 256, (0,256)) 76 ymodes.append(numpy.argmax(yhist)) 77 uhist,_ = numpy.histogram(uimg*255, 256, (0,256)) 78 umodes.append(numpy.argmax(uhist)) 79 vhist,_ = numpy.histogram(vimg*255, 256, (0,256)) 80 vmodes.append(numpy.argmax(vhist))
|
test_param_black_level_lock.py | 22 import numpy namespace 58 hist,_ = numpy.histogram(yimg*255, 256, (0,256)) 59 modes.append(numpy.argmax(hist))
|
test_burst_sameness_fullres_auto.py | 19 import numpy namespace 58 imgs = numpy.empty([FRAMES,h/4,w/4,3]) 81 delta_max_pos = numpy.max(deltas) 82 delta_max_neg = numpy.min(deltas)
|
test_burst_sameness_auto.py | 20 import numpy namespace 62 imgs = numpy.empty([FRAMES,h,w,3])
|
/external/chromium_org/third_party/cython/src/Cython/Includes/numpy/ |
math.pxd | 0 # NumPy math library 3 # This exports the functionality of the NumPy core math library, aka npymath, 5 # with a C89 library (such as MSVC). npymath is available with NumPy >=1.3, 13 # See the NumPy documentation for linking instructions. 15 # Complex number support and NumPy 2.0 half-precision functions are currently 20 cdef extern from "numpy/npy_math.h" nogil: 46 # Low-level floating point manipulation (NumPy >=1.4) 119 # NumPy extensions
|
__init__.pxd | 0 # NumPy static imports for Cython 7 # code for use in Python 2.x (or Python <= 2.5 when NumPy starts 29 cdef extern from "numpy/arrayobject.h": 155 ctypedef class numpy.dtype [object PyArray_Descr]: class in inherits: 165 ctypedef extern class numpy.flatiter [object PyArrayIterObject]: class in inherits: 169 ctypedef extern class numpy.broadcast [object PyArrayMultiIterObject]: class in inherits: 178 ctypedef class numpy.ndarray [object PyArrayObject]: class in inherits: 276 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) 718 # the numpy module. 746 # numpy.int corresponds to 'l' and numpy.long to 'q 861 ctypedef extern class numpy.ufunc [object PyUFuncObject]: class in inherits: [all...] |
/cts/apps/CameraITS/tests/sensor_fusion/ |
test_sensor_fusion.py | 26 import numpy namespace 78 # RGB images as numpy arrays. 157 a,b,c = numpy.polyfit(candidates, dists, 2) 209 all_times = numpy.array([e["time"] for e in gyro_events]) 210 all_rots = numpy.array([e["z"] for e in gyro_events]) 244 gyro_rots = numpy.array(gyro_rots) 254 frames: List of N images (as RGB numpy arrays). 261 frame = (frame * 255.0).astype(numpy.uint8) 281 return numpy.array(rots) 296 starts = numpy.array([start for start,exptime,readout in cam_events] [all...] |
/cts/apps/CameraITS/tests/inprog/scene2/ |
test_dng_tags.py | 19 import numpy namespace 51 print "HAL reported gains:\n", numpy.array(gains) 52 print "HAL reported ccm:\n", numpy.array(ccm).reshape(3,3) 53 print "HAL reported cal:\n", numpy.array(cal).reshape(3,3) 69 cm_ref = numpy.array(its.objects.rational_to_float( 71 fm_ref = numpy.array(its.objects.rational_to_float( 73 asn_ref = numpy.array(its.objects.rational_to_float(
|
/cts/apps/CameraITS/tests/scene1/ |
test_tonemap_sequence.py | 20 import numpy namespace 61 deltas = [numpy.max(numpy.fabs(means[i+1]-means[i])) \
|
test_linearity.py | 20 import numpy namespace 43 gamma_lut = numpy.array( 45 inv_gamma_lut = numpy.array( 92 line,residuals,_,_,_ = numpy.polyfit(range(5),means,1,full=True)
|
test_ev_compensation_basic.py | 23 import numpy namespace 62 luma_diffs = numpy.diff(lumas)
|
test_burst_sameness_manual.py | 21 import numpy namespace 56 imgs = numpy.empty([FRAMES,h,w,3])
|
test_ev_compensation_advanced.py | 23 import numpy namespace 82 avg_diff = abs(numpy.array(luma_diffs)).mean()
|
/external/libvpx/libvpx/vp9/common/ |
vp9_tapify.py | 11 import sys,string,os,re,math,numpy namespace 45 r,c = numpy.dot(affine,[y-radius, x-radius]) 64 r,c = numpy.dot(affine,[y-7.5, x-7.5])
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
vp9_tapify.py | 11 import sys,string,os,re,math,numpy namespace 45 r,c = numpy.dot(affine,[y-radius, x-radius]) 64 r,c = numpy.dot(affine,[y-7.5, x-7.5])
|
/cts/apps/CameraITS/tests/ |
tutorial.py | 35 # Modules from the numpy, scipy, and matplotlib libraries. These are used for 36 # the image processing code, and images are represented as numpy arrays. 38 import numpy namespace 127 # Images are numpy arrays. The dimensions are (h,w,3) when indexing, 151 lut = numpy.array([2*i for i in xrange(65536)]) 156 # is a numpy array, in row major order, and the pixel values are right- 159 mat = numpy.array([[1, 0, 0 ], 167 hist,_ = numpy.histogram(yimg*255, 256, (0,256))
|
/cts/suite/audio_quality/test_description/processing/ |
calc_delay.py | 17 import numpy as np 18 import numpy.linalg namespace
|
/system/extras/tests/sdcard/ |
README | 21 If you want to graph the results you need gnuplot and numpy: 23 sudo apt-get install gnuplot python-numpy python-numeric
|
/external/chromium_org/third_party/cython/src/Cython/Build/ |
Inline.py | 82 elif 'numpy' in sys.modules and isinstance(arg, sys.modules['numpy'].ndarray): 83 return 'numpy.ndarray[numpy.%s_t, ndim=%s]' % (arg.dtype.name, arg.ndim) 177 if m.groups()[0] == 'numpy': 178 import numpy namespace 179 c_include_dirs.append(numpy.get_include())
|