Giter VIP home page Giter VIP logo

Comments (11)

tacaswell avatar tacaswell commented on July 28, 2024

Could you share some/any of your images?

Try thresholding your images before passing them in.

It would also be helpful if you could post the exact parameters you are using.

from trackpy.

forevertheuni avatar forevertheuni commented on July 28, 2024

3,minmass=50000 (for example), threshold=8)

https://drive.google.com/file/d/0B9-erPeWaEjGc0N4MWdYZ0NRaGc/edit?usp=sharing
The first images have one or two particles detected with no problem, but when it disappears (other tifs) I have a bunch of other particles.
Thanks

from trackpy.

danielballan avatar danielballan commented on July 28, 2024

I poked around a little and saved my work in this notebook.

The later images in your example are full of scattered bright spots, and many of these bright spots have a mass much higher than 50000. Given how the images appear, I don't think locate/batch is doing anything surprising. The question might be why the field of view is suddenly filled with bright spots: is your camera's sensitivity changing during the experiment? Perhaps using a higher mass cutoff, as least twice as high as 50000, or some higher threshold, would eliminate those but retain the objects you want to track.

(For you images, typical mass numbers are higher than the ones in my walkthrough example because your image are 16-bit, where the examples are 8-bit.)

from trackpy.

forevertheuni avatar forevertheuni commented on July 28, 2024

The value of these bright spots is at the level of background when
comparing to images with real particles. But when I only have background
they are located. If you contrast the images you'll see they will
disappear. If not I gave you bad examples.

I tried higher Mass cut but I have situations where real events are around
50000, and even then it does not detect the background spots, only when
they disappear.
Thanks for the help.
On Apr 3, 2014 9:00 AM, "Dan Allan" [email protected] wrote:

I poked around a little and saved my work in this notebookhttp://nbviewer.ipython.org/gist/anonymous/2f0b6277559ddd53608d
.

The later images in your example are full of scattered bright spots, and
many of these bright spots have a mass much higher than 50000. Given how
the images appear, I don't think locate/batch is doing anything surprising.
The question might be why the field of view is suddenly filled with bright
spots: is your camera's sensitivity changing during the experiment? Perhaps
using a higher mass cutoff, as least twice as high as 50000, or some higher
threshold, would eliminate those but retain the objects you want to track.

(For you images, typical mass numbers are higher than the ones in my
walkthrough example because your image are 16-bit, where the examples are
8-bit.)

Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-39454077
.

from trackpy.

danielballan avatar danielballan commented on July 28, 2024

Ah, I think imshow was autoscaling them, which I should have realized. I will revisit later today. This should be doable.

from trackpy.

tacaswell avatar tacaswell commented on July 28, 2024

Just to check, the features if interest are the ~100 pixel across features? Shouldn't diameter be much larger than three? I strongly suspect that this can be handled with pre-processing and that part of the problem is the range stretching step (https://github.com/soft-matter/trackpy/blob/master/trackpy/feature.py#L503) that blows up the importance of noise that survives the too-small smoothing window.

from trackpy.

tacaswell avatar tacaswell commented on July 28, 2024

And as a further comment, if you only have three features per frame and they don't move much between frames while they are fading, you might be better off just finding them when they are bright and then just computing the sum over the same window in every frame.

from trackpy.

forevertheuni avatar forevertheuni commented on July 28, 2024

No, those are cells. It's just auto-fluorescence. I think that there is only one feature in those first samples (x:150 y: 270 aprox.) Here's an example with 3 or 4 particles.

https://drive.google.com/file/d/0B9-erPeWaEjGeW1CaW5Dcnc0bnM/edit?usp=sharing
I uploaded that example to show you that 1 event is fine, 0 events gives a lot of results that shouldn't be there.

I do have frames with 100+ events, but I have no problem with those. I can upload it if you'd like.

from trackpy.

forevertheuni avatar forevertheuni commented on July 28, 2024

And about the sum. I usually have more events, and they move a lot (virus). What I do with trackpy is to track the particles and then calculate a few things at the x.y provided by trackpy.

from trackpy.

forevertheuni avatar forevertheuni commented on July 28, 2024

Another example:
https://drive.google.com/file/d/0B9-erPeWaEjGWnFveG5vU0RUZUE/edit?usp=sharing

from trackpy.

tacaswell avatar tacaswell commented on July 28, 2024

Ah, sorry I was making up context from looking at the very small images in Dan's notebook.

from trackpy.

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.