Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8187947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:44:18+00:00 2026-06-07T02:44:18+00:00

I have two questions regarding the Evil Dicom library. I know with the floats

  • 0

I have two questions regarding the Evil Dicom library.

I know with the floats function, all of the pixel data is contained as float elements in a one dimensional array. My question here is how can I add up the individual elements to get one value?

After I have multiplied a black and white mask with the original image, how can I then add up the non-zero values in the image? Do I also use the floats function to get the data as an array and then add up the array elements? If not, how can I add up the pixels in the image from top left corner to bottom right corner?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:44:22+00:00Added an answer on June 7, 2026 at 2:44 am

    As far as I know there is no special functionality in the Evil DICOM library for these operations, but there is always LINQ.

    If you are looking for the sum of all pixel elements:

    var imgMtx = new ImageMatrix("image.dcm");
    var sum = imgMtx.Image.Sum();
    

    If you are looking for the sum of the non-zero values:

    var nonZeroSum = imgMtx.Image.Where(val => val != 0.0f).Sum();
    

    If you are looking for the average value, simply replace Sum with Average.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two questions regarding ceil() function.. The ceil() function is implemented in C.
I have two questions regarding python libraries: I would like to know if there
I have two questions regarding the Flex combo box. The string representing the function
I have two questions regarding built-in search feature of JqGrid. How to get all
I have two questions regarding the following function. Obviously, it is about a chat.
I actually have two questions regarding exception/error handling in the iPhone app that I
I have two questions. I know it is possible to declare class objects in
I have two questions regarding the multidimensional arrays. I declared a 3D array using
I have two questions regarding an NSArray: How can I add nil values to
I have two questions regarding Erlang file i/o; what is the best way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.