Code Monkey home page Code Monkey logo

Comments (16)

ccpandhare avatar ccpandhare commented on July 20, 2024

That's nice!
What exactly should be stored that way?

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Okay! Got it! Thanks :-)

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

What can be done about the module repetitions in this regard? Then we will need different namespaces for each repetition. So, is this a viable option? :

var metadata = [
    { /* ndvi-red data */ },
    { /* segmented-colormap-data */ },
    { /* decode-qr data */ }
];

It doesn't sound like a good idea for further repetitions to replace the previous metadata of the same module.

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Or this:

var metadata = {
    ndvi-red: [ {}, {}, ... ],
    decode-qr: [ {}, {}, ... ]
};

This sounds better. Accessing metadata would be like (for the latest repetition): (pseudocode)

metadata['ndvi-red'][-1].key;

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

You know, I think actually later modules should overwrite previous ones. Or should move previous ones to an older namespace or something. Say, if the QR code module generates metadata.decode-qr, you should get the most recent result in that value. Maybe each could return an object, but the object can have metadata._MODULENAME_.previous?

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Okay... What you say is definitely correct for a QR Decode module.
But say, for a Crop module, it won't be valid. The image might be cropped multiple times so I think we should preserve that data as well.

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

About multiple crops : We could track how the image transformed over time.

Okay I get what you are saying about the namespace, shall do.

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Will it work for the getMetadata function to be passed in to the module instead of the entire sequencer?

I feel that the module shouldn't have access to the sequencer because the module is a part of the sequencer and should not get access to other images, sequencer methods like loadImage, addSteps, etc.

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Yes, that's true. Some more thought is required here.
I shall think about this and come up with a plan.

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

Is this still open then?

from image-sequencer.

ccpandhare avatar ccpandhare commented on July 20, 2024

Yes this still is open...

from image-sequencer.

jywarren avatar jywarren commented on July 20, 2024

This is addressed in #77

from image-sequencer.

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.