Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 251e62f1

Přidáno uživatelem smoldas15 před téměř 5 roky(ů)

Re #7912: Ořezávání obrázků

- úprava přepočítávání koordinátů

Zobrazit rozdíly:

be/fulltextsearch/src/main/java/cz/zcu/kiv/aswi/fulltextsearch/SolrService.java
361 361
                //-----
362 362
                for (Point p: linePoints){
363 363
                    p.setX(p.getX() - textRegion.getRegionCoords().getPoints()[0].getX());
364
                    p.setY(p.getY() - textRegion.getRegionCoords().getPoints()[0].getY());
364
                    p.setY(p.getY() - y1);
365 365
                }
366 366
                //-----
367 367

  
......
381 381
                //-----
382 382
                for (Point p: wordPoints){
383 383
                    p.setX(p.getX() - textRegion.getRegionCoords().getPoints()[0].getX());
384
                    p.setY(p.getY() - textRegion.getRegionCoords().getPoints()[0].getY());
384
                    p.setY(p.getY() - y1);
385 385
                }
386 386
                //-----
387 387

  
......
408 408
            // recalculating Coords - during init for words and lines
409 409
            for (int k = 1; k<textRegion.getRegionCoords().getPoints().length; k++){
410 410
                textRegion.getRegionCoords().getPoints()[k].setX(textRegion.getRegionCoords().getPoints()[k].getX() - textRegion.getRegionCoords().getPoints()[0].getX());
411
                textRegion.getRegionCoords().getPoints()[k].setY(textRegion.getRegionCoords().getPoints()[k].getY() - textRegion.getRegionCoords().getPoints()[0].getY());
411
                textRegion.getRegionCoords().getPoints()[k].setY(textRegion.getRegionCoords().getPoints()[k].getY() - y1);
412 412
            }
413 413
            textRegion.getRegionCoords().getPoints()[0].setX(0);
414 414
            textRegion.getRegionCoords().getPoints()[0].setY(0);

Také k dispozici: Unified diff