Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Art & Imaging in Linux > [SOLVED] math problem: compute 3d volume (image-based)

Forgot Password?
 Art & Imaging in Linux   Stuff made with The GIMP and/or others

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 01-17-2008   #1 (permalink)
Just Joined!
 
Join Date: Jan 2008
Location: Philippines
Posts: 10
Send a message via Yahoo to nephritiri
[SOLVED] math problem: compute 3d volume (image-based)

i came here to hear your opinions and suggestions and for your help.
owww... im nver good in math...

this may be more mathematical than ubuntu-ish... i need your help.

im currently developing a program to render a volume from a sequence of binary 2D images. i use C++ and a class library we use in school for computer graphics.

what im doing in 3d rendering is voxel-based.i use space carving algo. i am now able to render the volume but one of my main goals is this: compute the volume of the original object through those 2D input images.

iv researched about the calibration in this kind of processing but im all tangled up. i admit that im nver good in math.

the idea is, if 1 voxel is 1cm^3, and if the total of voxels are 500, that means the 3d object ive rendered is 500cm^3.

but it was just based on the images and the volume iv rendered, how will i transform that to the real world? (true volume)

one more thing,the orig dimensions of the imgs are 640x480. but coz i only hav limited comp. resources (single-core,512mb ram),i scaled them down to 267x200. with the same ratio of 1.35.

so, iv scaled the images down... 1 voxel in 267x200 is how many voxels in 640x480? is it 2.4? (640/267, 480/200)

so, if i hav 500 voxels in 267x200, is it equivalent to 1200 voxels in 640x480?

then... if it is (if it is...), i have 1200 voxels...1200cm^3
what if i precomputed the real world object and it has a dimension of(in cm) w=16, h=11, d=31...a volume of 5,456 cm^3... then what? how can i transform computation from those voxels to real world? how will i know that im right?

will it be right to set 1 voxel to 1 cm^3? and so, if it is, i have a ratio of 4.55 (5456/1200)--ratio of real world and images?

oh no... am i making any sense?pls..help me.
nephritiri is offline  


Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:59 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2