Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance on Extracting Numeric Values of Gaussian Curvature from Image Class #392

Open
GayanSamuditha opened this issue Feb 12, 2024 · 1 comment

Comments

@GayanSamuditha
Copy link

GayanSamuditha commented Feb 12, 2024

The problem arises while trying to extract Gaussian curvature from images for analysis purposes. We are currently using the code snippet:

**fik <- weingartenImageCurvature(fi, opt = 'gaussian')**

This code successfully generates an image class object, fik, that represents the Gaussian curvature extracted from the input image fi. The issue we face is in extracting the numeric values of the Gaussian curvature from the fik image class for further quantitative analysis. The lack of a straightforward method to convert or extract these values from the image class has been a challenge.

I am seeking a method or function that enables the direct extraction of Gaussian curvature numeric values from the fik image class. Ideally, this solution would allow for the efficient and accurate retrieval of curvature data in a format that can be easily utilized for subsequent analysis, such as in arrays or lists of numeric values.

As an alternative, we have considered manually analyzing the image data to approximate curvature values, but this method lacks the precision and efficiency required for our analysis. We have also explored other libraries and tools for curvature analysis, yet none seem to offer a straightforward solution for extracting Gaussian curvature values directly from an image class object.

The ability to accurately and efficiently extract Gaussian curvature values is crucial for our project, as these values play a vital role in our analysis. Any guidance, suggestions, or updates to facilitate this extraction process would be greatly appreciated. If there are any existing functions or parameters within the library that we may have overlooked, please advise.

@ntustison
Copy link
Member

To convert from an ANTsR image to an R array:

fik_rarray <- as.array( fik )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants