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-18-2015, 10:22 PM   #2547354  /  #26
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

This is the kind of thing I had in mind:



I wanted to know the series of symmetrical spheres you'd get, starting with the smallest, and how many voxels each would have.
__________________
Join me at The Skeptical Zone
  topbottom
08-19-2015, 11:16 AM   #2547576  /  #27
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?
I want to specify a small spherical region of brain centered on a set (xyz) of coordinates in millimeters.
The emphasis of the question didn't come across right. Why Voxels?
__________________
The Feynmann Algorithm: (1) Write down the problem (2) Think real hard (3) Write down the solution
  topbottom
08-19-2015, 11:17 AM   #2547578  /  #28
Jet Black
Finding Things Out
Mod: ASS, LSD, Phys Sci
 
Jet Black's Avatar
 
: Dec 1969
: 31,476
Jet Black

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

finally, a jew skin lampshade.
__________________
The Feynmann Algorithm: (1) Write down the problem (2) Think real hard (3) Write down the solution
  topbottom
08-19-2015, 01:30 PM   #2547642  /  #29
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

OK so assuming that the centre of the sphere is the centre of a voxel, and that we include any voxel whose centre is within the sphere, we get (for voxels of size 1x1x1):
r2 number of voxels
0 1
1 7
2 19
3 27
4 33
5 57
6 81
8 93
9 123
10 147
11 171
12 179
13 203
14 251
16 257
17 305
18 341
19 365
20 389
21 437
22 461
24 485
25 515
26 587
27 619
29 691
30 739
32 751
33 799
34 847
35 895
36 925
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-19-2015, 01:34 PM   #2547644  /  #30
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

Blue: number of voxels as a function of radius
Red: (4/3) p r3
Attached Thumbnails
Click image for larger version

Name:	nvox.jpg
Views:	153
Size:	6.4 
ID:	6633  
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-19-2015, 04:46 PM   #2547740  /  #31
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.
The emphasis of the question didn't come across right. Why Voxels?
Because voxels are how we plot data in brains.
__________________
Join me at The Skeptical Zone
  topbottom
08-19-2015, 04:48 PM   #2547741  /  #32
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

THANK YOU BD!!!!

I was beginning to think my question was incomprehensible.

I got as far as the 7 voxel one, then I got stuck.

__________________
Join me at The Skeptical Zone
  topbottom
08-19-2015, 04:53 PM   #2547744  /  #33
buttershug
Hung
Zaptonia Defense Champion, Summer Sports Match Champion, Attack Of The Fan Girls Champion, Budapest Defenders Champion, When Penguins Attack TD Champion, Flash RPG Tower Defense Champion
 
buttershug's Avatar
 
: Dec 2010
: 26,430
buttershug

:
OK so assuming that the centre of the sphere is the centre of a voxel, and that we include any voxel whose centre is within the sphere, we get (for voxels of size 1x1x1):
r2 number of voxels
0 1
1 7
2 19
3 27
4 33
5 57
6 81
8 93
9 123
10 147
11 171
12 179
13 203
14 251
16 257
17 305
18 341
19 365
20 389
21 437
22 461
24 485
25 515
26 587
27 619
29 691
30 739
32 751
33 799
34 847
35 895
36 925
You have voxels partly out of the sphere?
I'm picturing your second one as a cube with a cube on each face.
That would give a radius of 1.5 for sphere that encloses all of each voxel.

If you remove the requirement for the centre of the sphere being the centre of a voxel the second one would be 6 where you have four cubes forming a square with a voxel on top and bottom of the square.

Something else to consider is what volume of the sphere that completely contains all voxels is filled by voxel?

Otherwise you can get a really bad sphere with two side by side voxels.
__________________
Quote:
Only the madman is absolutely sure.

Robert Anton Wilson
https://www.youtube.com/watch?v=Z3YQ24i1wP0
  topbottom
08-19-2015, 05:20 PM   #2547764  /  #34
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

:
You have voxels partly out of the sphere?
Yes, I was including any voxel whose centre is on or within the sphere.

If we specify that the voxel has to be completely within the sphere, then you get something like
r2 number of voxels
0 0
0.75 1
2.75 7
4.75 19
6.75 33
8.75 57
and so on.
:
I'm picturing your second one as a cube with a cube on each face.
yes.
:
That would give a radius of 1.5 for sphere that encloses all of each voxel.
More like 1.658 or so, to get all the corners in.
:
If you remove the requirement for the centre of the sphere being the centre of a voxel the second one would be 6 where you have four cubes forming a square with a voxel on top and bottom of the square.
Hmmm. I was assuming that the voxels all fit into a cubic grid. Here you seem to be thinking of the voxels as "loose". That's a harder problem.

But even with the grid, we'll get different answers if we (e.g.) put the centre of the sphere on one of the corners instead of at the centre of a voxel. We'd jump from 0 voxels to 8 voxels, for example.
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-19-2015, 05:28 PM   #2547768  /  #35
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

:
THANK YOU BD!!!!

I was beginning to think my question was incomprehensible.

I got as far as the 7 voxel one, then I got stuck.

yw

I haven't found a tidy formula. I had to do a bit of coding.

Note that if you have a value of r2 that's in between two of the numbers in the left-hand column of my table, then you round down.

So your picture in #26, for example, looks like the case of r = 5, i.e. r2 = 25, in my table. (Just staring at it and counting, it looks like you have 515 voxels there.) And so it's applicable to 25 ≤ r2 < 26.
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-19-2015, 06:32 PM   #2547805  /  #36
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

:
Something else to consider is what volume of the sphere that completely contains all voxels is filled by voxel?
Here's the fraction of the sphere's volume that is accounted for by the voxels that are entirely within the sphere. (Given as a function of the radius.)
Attached Thumbnails
Click image for larger version

Name:	rvox.jpg
Views:	179
Size:	6.9 
ID:	6635  
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-19-2015, 06:34 PM   #2547807  /  #37
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

:
:
THANK YOU BD!!!!

I was beginning to think my question was incomprehensible.

I got as far as the 7 voxel one, then I got stuck.

yw

I haven't found a tidy formula. I had to do a bit of coding.

Note that if you have a value of r2 that's in between two of the numbers in the left-hand column of my table, then you round down.

So your picture in #26, for example, looks like the case of r = 5, i.e. r2 = 25, in my table. (Just staring at it and counting, it looks like you have 515 voxels there.) And so it's applicable to 25 ≤ r2 < 26.

Yes, I was trying to code something. Then I decided that messy Duplo nuggets were better anyway.

But one day this will come in handy I think, for instance if we start with coordinates from an 8mm grid (which we may well do, once we leave fMRI behind).
__________________
Join me at The Skeptical Zone
  topbottom
08-20-2015, 03:09 AM   #2548195  /  #38
noAnthro
Senior Member
 
: Dec 2010
: 6,415
noAnthro

:
:
OK so assuming that the centre of the sphere is the centre of a voxel, and that we include any voxel whose centre is within the sphere, we get (for voxels of size 1x1x1):
r2 number of voxels
0 1
1 7
2 19
3 27
4 33
5 57
6 81
8 93
9 123
10 147
11 171
12 179
13 203
14 251
16 257
17 305
18 341
19 365
20 389
21 437
22 461
24 485
25 515
26 587
27 619
29 691
30 739
32 751
33 799
34 847
35 895
36 925
You have voxels partly out of the sphere?
I'm picturing your second one as a cube with a cube on each face.
That would give a radius of 1.5 for sphere that encloses all of each voxel.

If you remove the requirement for the centre of the sphere being the centre of a voxel the second one would be 6 where you have four cubes forming a square with a voxel on top and bottom of the square.

Something else to consider is what volume of the sphere that completely contains all voxels is filled by voxel?

Otherwise you can get a really bad sphere with two side by side voxels.

Butters, but now you have the top and bottom voxel centered at the intersection of the other four voxels? That is aren't they offset on the horizontal plane by one half voxel from the other four voxels? Assuming that the other four voxels are oriented in the horizontal plane.
__________________
When I begin to think that all the world is wrong but me, I should question myself. - John Langdon

Last edited by noAnthro; 08-20-2015 at 03:14 AM.
  topbottom
08-20-2015, 08:58 AM   #2548225  /  #39
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Yes, the centre of the ROI needs to be the centre of a voxel, for my purposes anyway. For playing-with-math purposes you can do what you like
__________________
Join me at The Skeptical Zone
  topbottom
08-21-2015, 06:31 PM   #2548956  /  #40
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

:
For playing-with-math purposes you can do what you like
Right. So if we change from Pingu's problem to butters's problem for a moment (where we're just trying to fit as many equal-sized cubes as possible within a sphere, allowing the cubes to fall loosely instead of conforming to a cubic grid):
radius number of cubes
0.866 1
1.225 2
1.382 3
1.471 4
1.546 5
1.631 6
1.658 7
1.732 8
Note that butters's suggestion for 6 cubes requires a sphere big enough to hold 7 cubes. A tighter arrangement of 6 cubes has 2 on top of 4.
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-25-2015, 08:05 PM   #2551093  /  #41
PerseusOmega9
Saves People From Themselves
 
PerseusOmega9's Avatar
 
: Jul 2010
: Piedmont, NC
: 8,861
PerseusOmega9

:
For playing-with-math purposes you can do what you like
oh god, don't encourage them
__________________
  topbottom
08-26-2015, 12:28 AM   #2551303  /  #42
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

lol
__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-26-2015, 05:07 AM   #2551349  /  #43
ffejrxx
Senior Member
 
ffejrxx's Avatar
 
: Nov 2011
: Minnesota
: 1,209
ffejrxx

instead of making the voxels smaller can you make the world bigger?
__________________
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-26-2015, 07:35 PM   #2551670  /  #44
Brother Daniel
predisposition to antagonism
Kodos the Executioner Mod: HASH, Philo, Math, THC
 
Brother Daniel's Avatar
 
: Jun 2008
: on the shore of the North Atlantic
: 15,670
Brother Daniel

__________________
Requiem: Everything we humans do is fully deserving of ridicule and mockery. Without a God to laugh, it falls to us enlightened fools to make up the difference.
  topbottom
08-30-2015, 01:38 PM   #2553493  /  #45
Heinz Hershold
Superior Member
 
Heinz Hershold's Avatar
 
: Sep 2011
: 2,727
Heinz Hershold

:

:
[

That will happen if all of the voxels are cubes. Have you tried different shapes?
Well, no, because I'm using cartesian coordinates.
And that is why there is a problem. Like fitting a square peg into a round hole.

It is easy enough to convert from rectangular coordinates to polar or spherical. The question is, can your software work with different types of coordinate systems?

It seems to me, if you want to graph a sphere, you want to use spherical coordinates, but then again, what do I know?
  topbottom
08-30-2015, 05:57 PM   #2553592  /  #46
kowalskil
Senior Member
 
: Sep 2010
: Fort Lee, NJ, USA
: 113
kowalskil
It is not math, IMHO

:
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?
Redefine foxel.
__________________
Ludwik Kowalski, author of "Diary of a Former Communist: Thoughts, Feelings, Reality,"
http://csam.montclair.edu/~kowalski/life/intro.html
It is based on a diary kept between 1946 and 2004 (in the USSR, Poland, France and the USA).
  topbottom
09-01-2015, 09:44 PM   #2554609  /  #47
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Heinz, I think you are missing the point.
__________________
Join me at The Skeptical Zone
  topbottom
09-01-2015, 10:35 PM   #2554649  /  #48
Heinz Hershold
Superior Member
 
Heinz Hershold's Avatar
 
: Sep 2011
: 2,727
Heinz Hershold

:
Heinz, I think you are missing the point.
Probably true. Anyway, this is what I was talking about. I don't know if that is any use to you or not.
  topbottom
09-01-2015, 11:02 PM   #2554658  /  #49
Pingu
I did. F. Poste.
GLaDOS
 
Pingu's Avatar
 
: Mar 2008
: UK
: 60,846
Pingu

Yes, that's essentially what I do.
__________________
Join me at The Skeptical Zone
  topbottom
10-04-2015, 02:56 AM   #2568077  /  #50
ffejrxx
Senior Member
 
ffejrxx's Avatar
 
: Nov 2011
: Minnesota
: 1,209
ffejrxx

Voxelized
http://store.steampowered.com/app/34..._7_7_204_150_1

on sale for 9ยข
__________________
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
 

  TalkRational Archive > Discussion > Mathematics







X vBulletin 3.8.6 Debug Information
  • Page Generation 0.20622 seconds
  • Memory Usage 4,481KB
  • Queries Executed 72 (?)
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
  • (24)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)im_aim
  • (132)mysmilies_imagebit
  • (1)navbar
  • (3)navbar_link
  • (1)navbar_mini
  • (1)navbar_noticebit
  • (55)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)postbit_attachmentthumbnail
  • (25)postbit_legacy
  • (25)postbit_onlinestatus
  • (25)postbit_reputation
  • (25)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper
  • (6)v3arcade_award_bit
  • (1)v3arcade_postbit_userid_popup_menu
  • (1)v3arcade_postbit_userid_trophy 

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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete