Package java.nio

Examples of java.nio.FloatBuffer.position()


                pointCounts.put(count);
            }
        }
        objectPointsMat.cols(objectPoints.position()/3);
        imagePoints1Mat.cols(imagePoints1.position()/2);
        imagePoints2Mat.cols(imagePoints2.position()/2);
        pointCountsMat .cols(pointCounts .position());


        // place our ProjectiveDevice at the origin...
        d.R = CvMat.create(3, 3); d.R.put(1.0, 0.0, 0.00.0, 1.0, 0.00.0, 0.0, 1.0);
View Full Code Here


                        vv[i+offset] = ib.get();
                    }
                    break;
                case CV_32F:
                    FloatBuffer fb = getFloatBuffer();
                    fb.position(index);
                    for (int i = 0; i < length; i++) {
                        vv[i+offset] = fb.get();
                    }
                    break;
                case CV_64F:
View Full Code Here

                        ib.put((int)vv[i+offset]);
                    }
                    break;
                case CV_32F:
                    FloatBuffer fb = getFloatBuffer();
                    fb.position(index);
                    for (int i = 0; i < length; i++) {
                        fb.put((float)vv[i+offset]);
                    }
                    break;
                case CV_64F:
View Full Code Here

                thresholdedBuf.hasRemaining()) {
            byte m = roiMaskBuf.get();
            if (m == 0) {
                residualBuf.position(residualBuf.position() + channels);
                targetBuf.position(targetBuf.position() + channels);
                transformedBuf.position(transformedBuf.position() + channels);
                thresholdedBuf.put((byte)0);
            } else {
                double relativeNorm = 0;
                double lightness = 0;
                for (int z = 0; z < channels; z++) {
View Full Code Here

                thresholdedBuf.hasRemaining()) {
            byte m = roiMaskBuf.get();
            if (m == 0) {
                residualBuf.position(residualBuf.position() + channels);
                targetBuf.position(targetBuf.position() + channels);
                transformedBuf.position(transformedBuf.position() + channels);
                thresholdedBuf.put((byte)0);
            } else {
                double relativeNorm = 0;
                double lightness = 0;
                for (int z = 0; z < channels; z++) {
View Full Code Here

                }
            }
        }

        // south pole
        vb.position(vertexIndex);
        vb.put(center.x).put(center.y).put(center.z - radius);

        getNormalBuffer().position(vertexIndex);
        getNormalBuffer().put(0).put(0).put(-1);
        getColorBuffer().put(SPHERE_COLOR.r).put(SPHERE_COLOR.g).put(SPHERE_COLOR.b).put(SPHERE_COLOR.a);
View Full Code Here

        getNormalBuffer().put(0).put(0).put(1);
        getColorBuffer().put(SPHERE_COLOR.r).put(SPHERE_COLOR.g).put(SPHERE_COLOR.b).put(SPHERE_COLOR.a);
        getTextureCoords().get(0).coords.put(0.5f).put(1.0f);

        originalVerticesCoords = BufferUtils.createVector3Buffer(getVertexCount());
        vb.position(0);
        originalVerticesCoords.put(vb);

        tempExtrudedVertices = BufferUtils.createVector3Buffer(getVertexCount());
        tempExtrudedColors = BufferUtils.createColorBuffer(getVertexCount());
    }
View Full Code Here

          offsets[3] = 3*indices*keyframes+offsets[2];
         
          data.rewind();

          for(int n=0;n<indices;n++){
            data.position(offsets[0]);
            data.get(temp, 0, 3);
            data.position(offsets[1]);
            data.get(temp, 3, 2);
            data.position(offsets[2]);
            data.get(temp, 5, 3);
View Full Code Here

          data.rewind();

          for(int n=0;n<indices;n++){
            data.position(offsets[0]);
            data.get(temp, 0, 3);
            data.position(offsets[1]);
            data.get(temp, 3, 2);
            data.position(offsets[2]);
            data.get(temp, 5, 3);
            data.position(offsets[3]);
            data.get(temp, 8, 1);
View Full Code Here

          for(int n=0;n<indices;n++){
            data.position(offsets[0]);
            data.get(temp, 0, 3);
            data.position(offsets[1]);
            data.get(temp, 3, 2);
            data.position(offsets[2]);
            data.get(temp, 5, 3);
            data.position(offsets[3]);
            data.get(temp, 8, 1);
           
            offsets[0] += 3;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.