Giter Site home page Giter Site logo

Kymograph of a rectangle ROI about flika HOT 2 OPEN

biswajitSM avatar biswajitSM commented on July 16, 2024
Kymograph of a rectangle ROI

from flika.

Comments (2)

kyleellefsen avatar kyleellefsen commented on July 16, 2024

Yes, it should be possible. In flika/roi.py, the ROI_line class has all the kymograph related functions. It should be pretty straightforward to copy those functions to the ROI_rectangle class located in the same file. The code that would need to be changed in the transfer is the averaging, and the ability to select whether the kymograph is an x_kymograph and y_kymograph.

A more elegant solution might be to have a setting when creating the kymograph from the ROI_line that specifies the width to average, with the default being 1 pixel. This could be a dialog box that pops up after you make the selection for 'Kymograph', or it could be a setting of the line itself, set by right clicking the line icon in the main window. If it's a dialog box it won't be hidden from the user, but it might get annoying to select the width every time.

I probably won't implement this, but if you want to discuss it and submit a pull request I'd be happy to include it.

from flika.

biswajitSM avatar biswajitSM commented on July 16, 2024

Thanks for the suggestions and ideas to implement this. It's taking time for me to get used to the PyQt syntaxes. but I like the second option where you could simply change the thickness. it can also allow to use any orientation. I will try to implement it and send a pull request.

from flika.

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.