Giter Site home page Giter Site logo

Comments (2)

ntustison avatar ntustison commented on May 28, 2024

I've looked into this but haven't had the time to fix it. It's basically caused
by the fact that tensors are hard-coded as 3-d in numerous places.

On Jun 29, 2013, at 10:07 PM, hjmjohnson [email protected] wrote:

/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx: In function ‘void ants::CorrectImageTensorDirection(TensorImageType_, ImageType_) [with TensorImageType = itk::Image, 2u>, ImageType = itk::Image]’:
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:51: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:52: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:53: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:60: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:61: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:62: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx: In function ‘void ants::CorrectImageTensorDirection(TensorImageType_, ImageType_) [with TensorImageType = itk::Image, 2u>, ImageType = itk::Image]’:
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:51: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:52: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:53: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:60: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:61: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:62: warning: array subscript is above array bounds
In file included from /Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/itkLogTensorImageFilter.h:24,
from /Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Utilities/ReadWriteImage.h:21,
from /Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/itkantsRegistrationHelper.h:21,
from /Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/antsApplyTransforms.cxx:3:
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h: In function ‘void EigenAnalysis(TensorType, MatrixType&, MatrixType&) [with TensorType = itk::SymmetricSecondRankTensor, MatrixType = itk::VariableSizeMatrix]’:
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:25: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:26: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:27: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h: In function ‘TensorType TensorLogAndExp(TensorType, bool, bool&) [with TensorType = itk::SymmetricSecondRankTensor]’:
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:113: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:51: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:52: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:53: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:102: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:102: warning: array subscript is above array bounds
/Shared/sinapse/sharedopt/20130601/RHEL6/DTIPrep/BRAINSTools-build/ANTS/Examples/../Tensor/TensorFunctions.h:102: warning: array subscript is above array bounds


Reply to this email directly or view it on GitHub.

from ants.

Chaircrusher avatar Chaircrusher commented on May 28, 2024

I've fixed some of these and verified that the fix causes no regressions.
https://github.com/stnava/ANTs/tree/FixTemplateWarnings

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.