Giter Site home page Giter Site logo

Comments (4)

mooch443 avatar mooch443 commented on May 24, 2024

Hey, thanks for your report.

You might be able to circumvent your problem by setting track_speed_decay = 1 and track_max_reassign_time to a high value (in seconds). This should essentially model the behaviour that you expected - identities might still jump to nearby objects, but in general should (given a low track_max_speed) not jump around too much. track_speed_decay provides a hint to TRex of what is expected to happen if an individual is lost - e.g. it will stay "in-place", or it will continue moving (over or behind obstacles) and emerge somewhere else. A value of 1 will indicate that it stays where it was last seen.

Does this help?
-Tristan

from trex.

StefanMPopp avatar StefanMPopp commented on May 24, 2024

Yes, this does help, thanks!
I'm not sure how best to communicate with you and I don't want to open lots of requests, so I'm going to add some offtopic here:

  1. Is it possible to give the output columns a different name? I already managed to only output the columns I need.
  2. The track_ignore format description is not clear to me: what does the (, ...) mean? Is there a ] too many? I tried [[1,1],[500,1],[500,500],[1,500]] (as an example), but it threw me a syntax error.

from trex.

mooch443 avatar mooch443 commented on May 24, 2024

Hey,

here is good. Opening issues is (luckily) not an issue. It is actually good to have this as a reference for future readers as well. Parts could also be added to a Wiki in the future... we will see.

  1. Is it possible to give the output columns a different name? I already managed to only output the columns I need.

If you are exporting as CSV, then renaming the columns would be simply to edit the (text-format) CSV files and change the name. This could also be batched of course (e.g. with Bash or Python). If you are using the standard way, you can load files in Python via (not tested):

import numpy as np
map = { 'old_column': 'new_column' }
file = {}
with np.load("fish0.npz") as npz:
    for key in map:
        file[map[key]] = npz[key]
np.savez("renamed_fish0.npz", *map)
  1. The track_ignore format description is not clear to me: what does the (, ...) mean? Is there a ] too many? I tried [[1,1],[500,1],[500,500],[1,500]] (as an example), but it threw me a syntax error.

In TRex (and better in the new version v1.1.2) you can CTRL+Click or CMD+Click or SHIFT+CLICK (depending on your system and TRex version, sorry) on the background to select a shape. This shape can then be either printed to the terminal (and you can copy it there) or directly added to track_ignore or track_include. You may have to reanalyse with the new shapes in place - but whatever shapes you select/print out should be compatible with those parameters.

Otherwise, or more generally, the syntax is:

[SHAPE,SHAPE,SHAPE, ... ]

and each SHAPE is:

[POINT,POINT, ... ]

So, in short, I believe you are missing a bracket pair around the list.

from trex.

StefanMPopp avatar StefanMPopp commented on May 24, 2024

Thank you, that answers both questions! I had a rename script like this one in place, but wondered if it could be skipped.
I suggest you add a [ in the examples for track_ignore and track_include and an 'each' after the '>= 3 points' in the descriptions (or something similar) to make it clearer.
Edit: You might want to add that they will be only convex polygons.

from trex.

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.