An uniform grid, where each pixel/voxel got is own value. I want to create a new grid where each pixel/voxel got the same value even tho the grid becomes non-uniform.

2 views (last 30 days)
Hello everyone,
I am not the professinal with Matlab and I have a problem to solve.
I have to divide a "special stone" to small pieces of 100 gram. In my case we are talking about a 3D-problem but I will illustrate it in 2D so people get the idea. So in my case I got a stone, which got many different weights randomly distributed, which is illustrated in the picture below (left side).
Each number contain a specific weight so in this case there are 9 densities (1-9), both the position and the resolution for each pixel/voxel is known and we can say it is 5 mm in this case and uniform distributed.
I have to create new grid where each pixel/voxel in this stone contains 100 gram like on the right side.
I really don't know how to execute this well but got an idea, which I have illustrated in the 2nd figur, where I could use some kind of of filter where the mass can 95-105 gram or something... I like have showed here:
But I have no clue how to begin I hope you people can help me out! :)
Thank you very much for your time.
  1 Comment
Walter Roberson
Walter Roberson on 16 May 2016
Nick, we do not delete posts just because no complete answer was received. The discussions are deliberately public, so that everyone can see, including other people who might come along later with similar questions.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 7 May 2016
Edited: Walter Roberson on 8 May 2016
If the task is to move the pixels on the left around so that they can be organized into blocks with each block totaling 95 to 105, and each of the blocks is to have a mixture of densities: then that would be what is known as a "Knapsack Problem", possibly even one of the Bin Packing Problems. Such problems cannot be solved with filters; such problems are computationally difficult.
  14 Comments
Walter Roberson
Walter Roberson on 25 May 2016
Nick, in the irregular-sized cuboid voxels, is there a resolution limit on those? Your source information is 1 mm, but how fine-grained is your beam width for delivering the radiation dose? And how much beam spread is there? Would it be correct that what you have is a two or three beam system, any one beam of which is sub-clinical (to pass through the non-targeted regions without change) but with multiple beams focused together in a region to reach a total dosage that is clinical?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!