Code Monkey home page Code Monkey logo

Comments (7)

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 03, 2011 09:22:32
New processing area code is passing all previous unit tests for default behaviour (world coords == image coords) and the first basic tests for working with coordinate transforms.

Added a new interface CoordinateTransform (in the runtime package) with a single method:
Point worldToImage(double x, double y, Point p)

Also added two implementing classes: IdentityCoordinateTransform and AffineCoordinateTransform, plus a utility class CoordinateTransforms.

See the javadocs and the WorldCoordsTest class for how these are used together with the new runtime methods for associating a transform with a source or destination image.

Also added two new functions to the Jiffle language: xstep() which returns pixel width in world units and ystep() which returns pixel height in world units.

Committed to 0.1.x branch (r1611) and trunk (r1612)

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 03, 2011 09:41:38
Bah - build is broken because I forgot to update the jiffle demo module. Also seem to be a couple of bugs running the demos.

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 03, 2011 12:10:11
Demo programs all working now and JiffleOpImage updated for new runtime API.

Will add more unit tests tomorrow and if all goes well, do the release the day after.

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 04, 2011 09:37:38
More code and tests committed: 0.1.x branch (r1616) and trunk (r1617)

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 04, 2011 12:00:06
Fixing up the method names a little...

Renaming the Jiffle functions xstep and ystep to xres and yres, because of mapcalc familiarity and also because I find myself talking about "resolution" all the time while writing the user guide.

Renaming JiffleRuntime.setWorldByStepDistance to setWorldByResolution

Renaming JiffleRuntime.setWorldByNumSteps to setWorldByNumPixels

Both of these seem more obvious.

Committed to trunk (r1620) and 0.1.x (r1621)

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 05, 2011 03:44:30
Made it mandatory to set the world bounds and resolution BEFORE adding any images with transforms or setting a default transform. An exception is thrown on failing to set the world first. Added tests for this.

trunk (r1627) and 0.1.x branch (r1628)

from jiffle.

mbedward avatar mbedward commented on July 18, 2024

From [email protected] on April 05, 2011 07:10:22
Added more unit tests to WorldCoordsTest class plus CoordinateTransformTest class. All passing, so closing this issue now and will deal with further items as separate issues.

This stage was trunk (r1633) and 0.1.x branch (r1634)

from jiffle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.