Examples of height()


Examples of org.apache.commons.math3.stat.descriptive.rank.PSquarePercentile.PSquareMarkers.height()

        PSquareMarkers mThat =
                PSquarePercentile.newMarkers(
                        Arrays.asList(new Double[] { 95.1772, 95.1567, 95.1937,
                                95.1959, 95.1442, 95.0610, 95.1591, 95.1195,
                                95.1772, 95.0925, 95.1990, 95.1682 }), 0.50);
        mThat.height(6);
    }

    @Test
    public void testPSquaredEqualsAndMin() {
        PSquarePercentile ptile = new PSquarePercentile(0);
View Full Code Here

Examples of org.axsl.ps.BoundingBox.height()

     */
    public byte[] epsToPostScript(final EpsGraphic image, final int x,
            final int y, final int w, final int h) throws GraphicException {
        final BoundingBox bbox = image.getBoundingBox();
        final float bboxw = bbox.width();
        final float bboxh = bbox.height();

        StringBuilder buffer = new StringBuilder();
        buffer.append("%%BeginDocument: " + image.getName());
        buffer.append("BeginEPSF");

View Full Code Here

Examples of org.opencv.core.Mat.height()

        List<ArtifactDetectedObject> detectedObjectList = new ArrayList<ArtifactDetectedObject>();
        Mat image = OpenCVUtils.bufferedImageToMat(bImage);
        if (image != null) {
            MatOfRect faceDetections = new MatOfRect();
            double width = image.width();
            double height = image.height();
            for (CascadeClassifierHolder objectClassifier : objectClassifiers) {
                objectClassifier.cascadeClassifier.detectMultiScale(image, faceDetections);

                for (Rect rect : faceDetections.toArray()) {
                    ArtifactDetectedObject detectedObject = new ArtifactDetectedObject(
View Full Code Here

Examples of org.opencv.core.MatOfInt.height()

      MatOfInt hull = new MatOfInt();
      MatOfPoint points = new MatOfPoint(pointMat);
     
     
      Imgproc.convexHull(points, hull);
      Point[] hp = new Point[hull.height()];
     
      for(int i = 0; i < hull.height(); i++){
        int index = (int)hull.get(i,0)[0];
        hp[i] = new Point(pointMat.get(index,0));
      }
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGSize.height()

    int height;
    switch (orientation) {
    case LandscapeLeft:
    case LandscapeRight:
      height = (int)bounds.width();
      width = (int)bounds.height();
      break;
    default:
      // assume portrait
      width = (int)bounds.width();
      height = (int)bounds.height();
View Full Code Here

Examples of org.robovm.cocoatouch.coregraphics.CGSize.height()

    int height;
    switch (orientation) {
    case LandscapeLeft:
    case LandscapeRight:
      height = (int)bounds.width();
      width = (int)bounds.height();
      break;
    default:
      // assume portrait
      width = (int)bounds.width();
      height = (int)bounds.height();
View Full Code Here

Examples of org.terasology.math.Rect2f.height()

                textureMat.setFloat2("scale", scale);
                textureMat.setFloat2("offset",
                        absoluteRegion.minX(),
                        absoluteRegion.minY());

                textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
                textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());
                break;
            }
            case SCALE_FILL: {
                textureMat.setFloat2("offset", absoluteRegion.minX(), absoluteRegion.minY());
View Full Code Here

Examples of org.terasology.math.Rect2i.height()

    public void onDraw(Canvas canvas) {
        Rect2i region = canvas.getRegion();
        inputPort.updateRect();
        canvas.drawWidget(inputPort, Rect2i.createFromMinAndMax(
                (int) (inputPort.rect.minX() / 10.f * region.width()),
                (int) (inputPort.rect.minY() / 5.f * region.height()),
                (int) (inputPort.rect.maxX() / 10.f * region.width()),
                (int) (inputPort.rect.maxY() / 5.f * region.height())));
        for (Port port : ports) {
            port.updateRect();
            canvas.drawWidget(port, Rect2i.createFromMinAndMax(
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.BorderPropertySet.height()

            Rectangle bounds = getContentLimitedBorderEdge(c);
            if (bounds != null) {
                BorderPropertySet border = getBorder(c);
                RectPropertySet padding = getPadding(c);
                bounds.y += (int)border.top() + (int)padding.top();
                bounds.height -= (int)border.height() + (int)padding.height();
                return bounds;
            }
        }
       
        return super.getChildrenClipEdge(c);
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.RectPropertySet.height()

        RectPropertySet margin = getMargin(cssCtx);
        RectPropertySet border = getBorder(cssCtx);
        Rectangle result = new Rectangle(left + (int) margin.left() + (int) border.left(),
                top + (int) margin.top() + (int) border.top(),
                getWidth() - (int) margin.width() - (int) border.width(),
                getHeight() - (int) margin.height() - (int) border.height());
        return result;
    }
   
    protected int getPaddingWidth(CssContext cssCtx) {
        RectPropertySet padding = getPadding(cssCtx);
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.