Frenemies of TalkRational:
Nontheist Nexus |  Rants'n'Raves |  Secular Cafe |  Council of Ex-Muslims |  The Skeptical Zone |  rationalia |  Rational Skepticism |  Atheists Today | 
TalkRational Archive  

FAQ Rules Staff List RSS
  TalkRational Archive > Discussion > Mathematics


Mathematics constants, variables and stuff

 
 
Thread Tools Display Modes
08-13-2015, 02:42 PM   #2543041  /  #1
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu
Someone solve this problem for me

I want to approximate a sphere with voxels.

My voxels are 8mm x 8mm x 8mm.

If I assume that my centre is in the centre of a voxel, what size symmetrical "spheres" can I get, at different radii?

For instance, if I go to a max radius of 12 voxels, I could presumably get a seven voxel cluster. How many voxels in the next size up and so on?
__________________
Join me at The Skeptical Zone
  topbottom
08-13-2015, 03:05 PM   #2543059  /  #2
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

Is this your starting point Vauxhall?

  topbottom
08-13-2015, 10:42 PM   #2543558  /  #3
Linus
Senior Member
 
: Mar 2008
: 5,528
Linus

:
For instance, if I go to a max radius of 12 voxels, I could presumably get a seven voxel cluster. How many voxels in the next size up and so on?
I don't understand the numerical example, but if a voxel is a cube of size L, then a sphere of radius R can fit at most

4 pi/3 * R^3 / L^3

voxels. Intuitively, I think the following is a lower bound (reduce the radius by the length of the diagonal in a voxel):

4 pi/3 * (R - sqrt(3) L)^3 / L^3.
  topbottom
08-13-2015, 10:45 PM   #2543559  /  #4
praying
Administrator
TR'S UPPITY NEGRO ADMIN
 
praying's Avatar
 
: Apr 2008
: 14,806
praying

what the hell is a voxel?
__________________
You may be right, I may be crazy but it just may be a lunatic you're looking for!!

  topbottom
08-13-2015, 10:45 PM   #2543560  /  #5
Linus
Senior Member
 
: Mar 2008
: 5,528
Linus

A pixel, but 3D.
  topbottom
08-13-2015, 10:46 PM   #2543561  /  #6
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

It's OK, I solved it. Well, I didn't exactly solve it, but I figured that I should drop the requirement that the centre be in the center of the central voxel.

I've ended up with some weird "spheres" though. The voxels are just a bit big for the diameter "sphere" we want. Like trying to build golf balls out of lego.
__________________
Join me at The Skeptical Zone
  topbottom
08-13-2015, 10:47 PM   #2543562  /  #7
praying
Administrator
TR'S UPPITY NEGRO ADMIN
 
praying's Avatar
 
: Apr 2008
: 14,806
praying

:
A pixel, but 3D.
thanks!
__________________
You may be right, I may be crazy but it just may be a lunatic you're looking for!!

  topbottom
08-13-2015, 10:48 PM   #2543563  /  #8
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

:
what the hell is a voxel?
Pixel = little pic tures
Voxel = little vo lumes

Just as you represent a 2D picture in little coloured pixels, you can represent a 3D brain, say, as a set of little coloured (or not) voxels.

__________________
Join me at The Skeptical Zone
  topbottom
08-13-2015, 10:49 PM   #2543566  /  #9
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

:
Is this your starting point Vauxhall?

A pixellated Voxel!
__________________
Join me at The Skeptical Zone
  topbottom
08-13-2015, 10:55 PM   #2543574  /  #10
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

:
:
Is this your starting point Vauxhall?

A pixellated Voxel!
I deserve an award for that word/picture/meaning association.
  topbottom
08-14-2015, 10:35 AM   #2544048  /  #11
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

You do
__________________
Join me at The Skeptical Zone
  topbottom
08-17-2015, 08:42 AM   #2546109  /  #12
Jet Black
Finding Things Out
Mod: ASS, LSD, Phys Sci
 
Jet Black's Avatar
 
: Dec 1969
: 31,476
Jet Black

What are you using voxels for?
__________________
The Feynmann Algorithm: (1) Write down the problem (2) Think real hard (3) Write down the solution
  topbottom
08-17-2015, 10:24 AM   #2546115  /  #13
gandalf
teh r3t4rd
teh pplz champi0n
 
gandalf's Avatar
 
: Feb 2010
: 13,784
gandalf

Im guessing 3d giant penis0rz
__________________
el guapo: gandalf, you are god's gift to mafia; i can be a little aspie rmacfarl: Febble you should listen to Gandalf
DeanM: Yes I acknowledge you were right. laughing dog: gandalf has it right rednoise: gandalf is right.
AwfulCrawler: I don't blame you for being a complete, utter retard gandalf. You were probably born that way.
Mattshizzle: Advice # 1 - post in English instead of Retarded.
Schneibster: Do you have any idea how many people have arrogantly told me I was full of shit on the Internet?
  topbottom
08-17-2015, 02:45 PM   #2546207  /  #14
Heinz Hershold
Superior Member
 
Heinz Hershold's Avatar
 
: Sep 2011
: 2,727
Heinz Hershold

:
:
what the hell is a voxel?
Pixel = little pic tures
Voxel = little vo lumes

Just as you represent a 2D picture in little coloured pixels, you can represent a 3D brain, say, as a set of little coloured (or not) voxels.

That will happen if all of the voxels are cubes. Have you tried different shapes?

Do you use mango?
  topbottom
08-18-2015, 09:43 AM   #2546724  /  #15
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

:
What are you using voxels for?
I want to specify a small spherical region of brain centered on a set (xyz) of coordinates in millimeters.

:
:
:
what the hell is a voxel?
Pixel = little pic tures
Voxel = little vo lumes

Just as you represent a 2D picture in little coloured pixels, you can represent a 3D brain, say, as a set of little coloured (or not) voxels.

That will happen if all of the voxels are cubes. Have you tried different shapes?
Well, no, because I'm using cartesian coordinates.

The issue is that I have a location-of-interest derived from fMRI, on a series of scan using a 3mm grid (i.e. 3 x 3 x 3 mm voxels). Usually, if you want to define a spherical region (a "Region Of Interest" ROI) with radius, say 10mm, of a specific voxel, you just include all voxels within 10mm (Euclidian distance) of the coordinates and you get a set of sphericalish looking things of approximately the same size i.e. same number of voxels.

But I am going to an image that is much more grainy - the voxels are 8mm. So I wanted to standardise my "sphere" so I have the same shape and size ROI for each coordinate. But for a small "sphere" there's a lot of variance in shape and size.

It's a bit like trying to copy a Lego design in Duplo.

Interestingly, for a 10mm radius, most come out as 8 voxels, one as 12 - because the location I'm interested in is not dead centre of any 8mm voxel, so instead of finding a nice symmetrical 7 voxel object, it finds a lumpy thing.

But they are OK. And probably better than finding symmetrical "spheres" with a centre in the in the wrong place.



:
Do you use mango?
No, we use SPM mostly.
__________________
Join me at The Skeptical Zone
  topbottom
08-18-2015, 11:15 AM   #2546742  /  #16
ffejrxx
Senior Member
 
ffejrxx's Avatar
 
: Nov 2011
: Minnesota
: 1,209
ffejrxx

modeling a sphere out of voxels is a challenge

making the voxels as small as possible would be best
at a 10mm rad
5mm voxels = 33
will be rounder

+/-10mm 1 voxel
+/-5mm = 9 voxels 3x3
+0mm = 13 voxels 3x3+4, 1 in the center of each side
total = 33
__________________
Quote:
Originally Posted by Dondrei
Did you just advise him to buy a Compaq? You're a cruel man.
...
The views and opinions expressed by Dondrei are not necessarily those of DonCorp or its owners or subsidiaries.
  topbottom
08-18-2015, 11:18 AM   #2546744  /  #17
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Yabbut the size of the voxels is a given.

If it wasn't, I wouldn't have a problem. They are quite big.
__________________
Join me at The Skeptical Zone
  topbottom
08-18-2015, 12:13 PM   #2546785  /  #18
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

:
:
What are you using voxels for?
I want to specify a small spherical region of brain centered on a set (xyz) of coordinates in millimeters.

The issue is that I have a location-of-interest derived from fMRI, on a series of scan using a 3mm grid (i.e. 3 x 3 x 3 mm voxels). Usually, if you want to define a spherical region (a "Region Of Interest" ROI) with radius, say 10mm, of a specific voxel, you just include all voxels within 10mm (Euclidian distance) of the coordinates and you get a set of sphericalish looking things of approximately the same size i.e. same number of voxels.

But I am going to an image that is much more grainy - the voxels are 8mm. So I wanted to standardise my "sphere" so I have the same shape and size ROI for each coordinate. But for a small "sphere" there's a lot of variance in shape and size.

It's a bit like trying to copy a Lego design in Duplo.

Interestingly, for a 10mm radius, most come out as 8 voxels, one as 12 - because the location I'm interested in is not dead centre of any 8mm voxel, so instead of finding a nice symmetrical 7 voxel object, it finds a lumpy thing.

But they are OK. And probably better than finding symmetrical "spheres" with a centre in the in the wrong place.



:
Do you use mango?
No, we use SPM mostly.
I wonder if some crystal packing rules can help.



Although you say that the cartesian grid is "fixed" (i.e. the voxel construct of the brain in question) and the coordinate of interest is variable?
  topbottom
08-18-2015, 04:35 PM   #2547018  /  #19
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Yes. I have a set of coordinates referring to voxels on a 3mm grid. I want spheres around them, but for an 8mm grid, same origin.
__________________
Join me at The Skeptical Zone
  topbottom
08-18-2015, 06:36 PM   #2547171  /  #20
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

:
Yes. I have a set of coordinates referring to voxels on a 3mm grid. I want spheres around them, but for an 8mm grid, same origin.
What's your radius of interest of each coordinate? Fixed? Variable?
  topbottom
08-18-2015, 07:39 PM   #2547220  /  #21
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Well, it's kind of suck it and see. I wanted it small enough so that close ones don't overlap, but big enough so that you've a chance of hitting the signal of interest.

We'll probably take the first principle component from the voxels of each sphere, and you need a decent number of spheres to be reasonably confident that the first principle component is capturing the relevant variance.
__________________
Join me at The Skeptical Zone
  topbottom
08-18-2015, 07:41 PM   #2547222  /  #22
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

The data is from a magnetoencephalography (MEG) scan.
__________________
Join me at The Skeptical Zone

Last edited by Pingu; 08-18-2015 at 09:23 PM. : missed a vowel
  topbottom
08-18-2015, 09:07 PM   #2547274  /  #23
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

:
The data is from a magnetencephalography (MEG) scan.
I've seen those before.

  topbottom
08-18-2015, 09:28 PM   #2547293  /  #24
Mike PSS
Senior Member
 
: Mar 2008
: Florida
: 11,478
Mike PSS

:
Yes. I have a set of coordinates referring to voxels on a 3mm grid. I want spheres around them, but for an 8mm grid, same origin.
If each 3x3x3 voxel is a unit cube, then each 8x8x8 voxel is 2-2/3 rds x 2-2/3 rds x 2-2/3 rds unit cubes. That's almost 19 unit cubes (18.96) per 8x8x8 voxel. If your coordinate space is less than, say 500 units then your error in estimating 19 unit cubes per 8x8x8 voxel will not be very far off.

Transpose your cartesian coordinates by 2-2/3rds in each direction to hit the boundries of your new voxel frames, then use a radius to define your new sphere and you should be able to define the boundry edges of each new 8x8x8 block from the new coordinate boundries radiating from the sample center ± radius on each axis.

Since your estimating a cube instead of a sphere you'll end up with almost double the number of unit cells gathered (volume of sphere vs. volume of cube). But the transpose math should be easier.

Do you need to transpose each 3x3x3 voxel into some 8x8x8 sphere?
  topbottom
08-18-2015, 10:16 PM   #2547349  /  #25
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

No, I have 13 locations on a 3x3x3 grid, i.e. 13 sets of 3D coordinates.

I just want spheres round them, which wouldn't normally be a problem (and I only want spheres because I want a uniformish distance from the point-of-interest), because I'm usually dealing with the same grain of grid.

But the MEG spatial resolution is quite coarse, and a bit dodgy so I want a reasonable stab at finding a reproducible signal, across lots of subjects.

I think I'm going to have to go with my lumpy duplo "spheres".
__________________
Join me at The Skeptical Zone
  topbottom
 

  TalkRational Archive > Discussion > Mathematics







X vBulletin 3.8.6 Debug Information
  • Page Generation 0.17287 seconds
  • Memory Usage 4,364KB
  • Queries Executed 71 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (25)add_ignore_user_to_postbit
  • (19)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (199)mysmilies_imagebit
  • (1)navbar
  • (3)navbar_link
  • (1)navbar_mini
  • (1)navbar_noticebit
  • (55)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (25)postbit_legacy
  • (25)postbit_onlinestatus
  • (25)postbit_reputation
  • (25)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/functions_notice.php
  • ./mobiquo/smartbanner.php
  • ./mobiquo/smartbanner/head.inc.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php 

Hooks Called:
  • init_startup
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • reputation_image
  • bbcode_parse_start
  • postbit_imicons
  • fetch_userinfo_query
  • fetch_userinfo
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete