Package dwlab.shapes.maps

Examples of dwlab.shapes.maps.DoubleMap.paste()


    DoubleMap targetMap = new DoubleMap( mapSize, mapSize );
    targetMap.drawCircle( mapSize * 0.625d, mapSize * 0.625d, mapSize * 0.35d, 0.8d );
    draw( targetMap.toNewImage(), "Target map" );

    DoubleMap doubleMap = new DoubleMap( mapSize, mapSize );
    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
    doubleMap.limit();
    draw( doubleMap.toNewImage(), "Adding source map to target map" );

    doubleMap.paste( targetMap );
View Full Code Here


    targetMap.drawCircle( mapSize * 0.625d, mapSize * 0.625d, mapSize * 0.35d, 0.8d );
    draw( targetMap.toNewImage(), "Target map" );

    DoubleMap doubleMap = new DoubleMap( mapSize, mapSize );
    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
    doubleMap.limit();
    draw( doubleMap.toNewImage(), "Adding source map to target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
View Full Code Here

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
    doubleMap.limit();
    draw( doubleMap.toNewImage(), "Adding source map to target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
    draw( doubleMap.toNewImage(), "Multiplying source map with target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
View Full Code Here

    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
    doubleMap.limit();
    draw( doubleMap.toNewImage(), "Adding source map to target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
    draw( doubleMap.toNewImage(), "Multiplying source map with target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
    draw( doubleMap.toNewImage(), "Maximum of source map and target map" );
View Full Code Here

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
    draw( doubleMap.toNewImage(), "Multiplying source map with target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
    draw( doubleMap.toNewImage(), "Maximum of source map and target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MINIMUM );
View Full Code Here

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
    draw( doubleMap.toNewImage(), "Multiplying source map with target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
    draw( doubleMap.toNewImage(), "Maximum of source map and target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MINIMUM );
    draw( doubleMap.toNewImage(), "Minimum of source map and target map" );
View Full Code Here

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
    draw( doubleMap.toNewImage(), "Maximum of source map and target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MINIMUM );
    draw( doubleMap.toNewImage(), "Minimum of source map and target map" );

    ImageBuffer buffer = sourceMap.toNewImageBuffer( DoubleMap.Channel.RED );
    targetMap.paste( buffer, DoubleMap.Channel.GREEN );
View Full Code Here

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MAXIMUM );
    draw( doubleMap.toNewImage(), "Maximum of source map and target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MINIMUM );
    draw( doubleMap.toNewImage(), "Minimum of source map and target map" );

    ImageBuffer buffer = sourceMap.toNewImageBuffer( DoubleMap.Channel.RED );
    targetMap.paste( buffer, DoubleMap.Channel.GREEN );
    draw( buffer.toImage(), "Pasting maps to different color channels" );
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.