Home
last modified time | relevance | path

Searched refs:pixelValue (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DImageClassifierQuantizedMobileNet.java72 protected void addPixelValue(int pixelValue) { in addPixelValue() argument
73 imgData.put((byte) ((pixelValue >> 16) & 0xFF)); in addPixelValue()
74 imgData.put((byte) ((pixelValue >> 8) & 0xFF)); in addPixelValue()
75 imgData.put((byte) (pixelValue & 0xFF)); in addPixelValue()
DImageClassifierFloatMobileNet.java69 protected void addPixelValue(int pixelValue) { in addPixelValue() argument
70 imgData.putFloat(((pixelValue >> 16) & 0xFF) / 255.f); in addPixelValue()
71 imgData.putFloat(((pixelValue >> 8) & 0xFF) / 255.f); in addPixelValue()
72 imgData.putFloat((pixelValue & 0xFF) / 255.f); in addPixelValue()
DImageClassifierFloatInception.java79 protected void addPixelValue(int pixelValue) { in addPixelValue() argument
80 imgData.putFloat((((pixelValue >> 16) & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in addPixelValue()
81 imgData.putFloat((((pixelValue >> 8) & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in addPixelValue()
82 imgData.putFloat(((pixelValue & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in addPixelValue()
DImageClassifier.java317 protected abstract void addPixelValue(int pixelValue); in addPixelValue() argument
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteObjectDetectionAPIModel.java161 int pixelValue = intValues[i * inputSize + j]; in recognizeImage() local
164 imgData.put((byte) ((pixelValue >> 16) & 0xFF)); in recognizeImage()
165 imgData.put((byte) ((pixelValue >> 8) & 0xFF)); in recognizeImage()
166 imgData.put((byte) (pixelValue & 0xFF)); in recognizeImage()
168 imgData.putFloat((((pixelValue >> 16) & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in recognizeImage()
169 imgData.putFloat((((pixelValue >> 8) & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in recognizeImage()
170 imgData.putFloat(((pixelValue & 0xFF) - IMAGE_MEAN) / IMAGE_STD); in recognizeImage()
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/
DOvicBenchmarker.java137 final int pixelValue = intValues[pixel++]; in loadsInputToByteBuffer() local
138 imgData.put((byte) ((pixelValue >> 16) & 0xFF)); in loadsInputToByteBuffer()
139 imgData.put((byte) ((pixelValue >> 8) & 0xFF)); in loadsInputToByteBuffer()
140 imgData.put((byte) (pixelValue & 0xFF)); in loadsInputToByteBuffer()
/external/tensorflow/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/
DOvicDetectorTest.java94 int pixelValue = image.getRGB(x, y); in toByteBuffer() local
95 imgData.put((byte) ((pixelValue >> 16) & 0xFF)); in toByteBuffer()
96 imgData.put((byte) ((pixelValue >> 8) & 0xFF)); in toByteBuffer()
97 imgData.put((byte) (pixelValue & 0xFF)); in toByteBuffer()
/external/deqp/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassTests.cpp2930 PixelValue pixelValue; in clearValueToPixelValue() local
2937 pixelValue.setValue(0, true); in clearValueToPixelValue()
2939 pixelValue.setValue(0, false); in clearValueToPixelValue()
2947 pixelValue.setValue(1, true); in clearValueToPixelValue()
2949 pixelValue.setValue(1, false); in clearValueToPixelValue()
2967 pixelValue.setValue(i, true); in clearValueToPixelValue()
2969 pixelValue.setValue(i, false); in clearValueToPixelValue()
2982 pixelValue.setValue(i, true); in clearValueToPixelValue()
2984 pixelValue.setValue(i, false); in clearValueToPixelValue()
2999 pixelValue.setValue(i, true); in clearValueToPixelValue()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleTests.cpp718 const deUint32 pixelValue = *((const deUint32*)image.getDataPtr() + pixelNdx); in getUniqueColorsCount() local
720 if (histogram.find(pixelValue) != histogram.end()) in getUniqueColorsCount()
721 histogram[pixelValue]++; in getUniqueColorsCount()
723 histogram[pixelValue] = 1; in getUniqueColorsCount()