Giter Club home page Giter Club logo

c3d's Introduction

c3d's People

Contributors

pyushkevich avatar br-cpvc avatar osandvold302 avatar cookpa avatar jilei-hao avatar fx-carton avatar

c3d's Issues

reversed order for subtraction and division for math binary operation

Dear Jilei,

I hope this message finds you well. I encountered a technical issue while attempting to post my message on the forum website (itksnap-users), and despite several attempts, I was unable to resolve the matter.

As per the guidelines and protocol, I understand the importance of communicating through the forum. However, due to the unforeseen circumstances, I am reaching out to you directly via email to ensure that my message does not go unnoticed.

Dear Jilei, I am writing to report an unexpected behavior I encountered while using the -divide command in c3d. According to the documentation, the -divide command should perform element-wise division of two images. However, when I attempted to divide Inphase.nii by opposite_phase.nii using the following command:

Inphase.nii opposite_phase.nii -divide -o ratio.nii

The resulting pixel values in ratio.nii were equal to the ratio of opposite_phase.nii to Inphase.nii, rather than the expected ratio of Inphase.nii to opposite_phase.nii. This unexpected behavior contradicts the documentation and makes it difficult to perform the desired arithmetic operation.

I have carefully reviewed the c3d manual guide to ensure that I am using the -divide command correctly. The documentation clearly states that the command should perform element-wise division of two images, yet the actual behavior is the opposite.

To reproduce this issue, please follow these steps:

  1. Download two images, Inphase.nii and opposite_phase.nii.

  2. Execute the following command:
    c3d Inphase.nii opposite_phase.nii -divide -o ratio.nii

  3. Inspect the resulting image, ratio.nii, and verify that the pixel values are equal to the ratio of opposite_phase.nii to Inphase.nii.

I have included the images mentioned in this message for your consideration.

Best Regards, Mohammad

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.