Giter Site home page Giter Site logo

antsMotionCorr time-shift error about ants HOT 5 CLOSED

antsx avatar antsx commented on May 28, 2024
antsMotionCorr time-shift error

from ants.

Comments (5)

stnava avatar stnava commented on May 28, 2024

hmm ---- see a previous fix/commit below

... relevant lines of code are between

https://github.com/stnava/ANTs/blob/master/Examples/antsMotionCorr.cxx#L1290
https://github.com/stnava/ANTs/blob/master/Examples/antsMotionCorr.cxx#L1306

unless you perhaps are using if ( maptoneighbor ) ?

which is likely not tested.

commit 3f249d9

Author: Brian Avants [email protected]

Date: Fri Sep 14 13:55:40 2012 +0000

BUG: offset of slice by 1

brian

On Thu, Mar 13, 2014 at 12:59 PM, Jeffrey Duda [email protected]:

There appears to be a problem in antsMotionCorr that causes the data from
the first time-point to disappear while data from the last time point
appears twice. So for an image of time-points [1,2,3,4,5,6] the output is
[2,3,4,5,6,6]. The last two output time-points images aren't identical
suggesting that different transforms are being used but applied to the same
input image.

Reply to this email directly or view it on GitHubhttps://github.com//issues/76
.

from ants.

jeffduda avatar jeffduda commented on May 28, 2024

Wrong button. Didn't mean to close that. Anyway, that's the section of code I've been looking at. I'm not (intentionally) using maptoneighbor, though from the documentation it's not clear how to turn that on/off

from ants.

stnava avatar stnava commented on May 28, 2024

the default looks like maptoneighbor is true - i just changed that.

previously, you turn it off via -u 1

 -u, --useFixedReferenceImage

      use a fixed reference image instead of the neighor in the time

series.

brian

On Thu, Mar 13, 2014 at 1:32 PM, Jeffrey Duda [email protected]:

Reopened #76 #76.

Reply to this email directly or view it on GitHubhttps://github.com//issues/76
.

from ants.

stnava avatar stnava commented on May 28, 2024

also - just tested in bold data and seemed to be ok using the ants
antsMotionCorrExample script

let me know if you have further issues or if my recent commit accidentally
fixed the problem.

brian

On Thu, Mar 13, 2014 at 1:38 PM, brian avants [email protected] wrote:

the default looks like maptoneighbor is true - i just changed that.

previously, you turn it off via -u 1

 -u, --useFixedReferenceImage

      use a fixed reference image instead of the neighor in the time

series.

brian

On Thu, Mar 13, 2014 at 1:32 PM, Jeffrey Duda [email protected]:

Reopened #76 #76.

Reply to this email directly or view it on GitHubhttps://github.com//issues/76
.

from ants.

jeffduda avatar jeffduda commented on May 28, 2024

That seems to have resolved it

from ants.

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.