| New Reply |
How to determine volume from a picture? |
Share Thread | Thread Tools |
| Jan3-13, 04:50 AM | #1 |
|
|
How to determine volume from a picture?
Hello,
It's my first time here on this forum and if my English is bad, than I at least hope I have chosen the right topic. Well, let me describe my problem: Imagine a .jpg with a balloon. What I have to do is determine a volume of it in the moment before it blows up. So in reality I have a movie, but I used a program where I can move frame by frame to get the last frame before the balloon explodes. Now, how can I determine the volume from surface? I tried to use this http://getdata-graph-digitizer.com/ , a program that can export .txt file of coordinates. But when I put this .txt file into "homemade" program written in Java to calculate the proper integral, the volumes don't make any sense and I am 100% sure that my program works properly and I even checked the units 25 times. Is there any other way to do is more elegant and as precise as possible? (Let's say that balloon is totally symmetrical). Please help! |
| Jan3-13, 05:49 AM | #2 |
|
|
When you say "surface" you mean the surface seen projected onto the plane, not the surface of the three dimensional balloon, right? Let's start with a simpler version. A sphere, with radius R, has volume [itex](4/3)\pi R^3[/itex] and projects onto any plane as a circle of radius R, having area [itex]\pi R^2[/itex]. Therefore the volume is [itex]((4/3)\pi R^3)/(\pi R^2)= (4/3)R[/itex] times the area.
For the more complicated version, approximate the volume as a sum of spheres of differing radii. |
| Jan3-13, 08:35 AM | #3 |
|
|
hmmm... It's a good idea. But the problem is that I have to calculate the volume of 20 balloons. As you probably know, the difference between the volumes before explosion should be zero if the balloons were ideal, since they are not, I expect some difference. However, I am afraid that this approximation with spheres is not good enough to "detect" the small difference, unless of course , I try to minimize the spheric radius as much as possible. Your idea works in theory, but honestly said, I have no idea how to write that in java or c+. |
| Jan3-13, 11:09 AM | #5 |
|
|
Using the grid, you could select some representative points on the boundary of the balloon (say, on the pink like) and fit a curve to them. Rotating the curve around the x-axis by the usual integration should give you a pretty good approximation.
|
| Jan4-13, 03:11 PM | #6 |
|
|
Later I used my own program written in .java to calculate the integral: [tex]V=\pi \int_{a}^{b}f(x)^{2}dx[/tex] where for [tex]f(x)=\frac{f(x_{n+1})+f(x_{n})}{2} [/tex] and [tex]dx=x_{n+1}-x_{n} [/tex] I hope this sounds good? I was just wondering if there is a better method to do this? Because for this, I had to use a lot of photoshop to rotate the picture until the balloon was perfectly horizontal ( because all balloons were not straight - see attachment) in order to get the integral as precise as possible. If anybody is thinking that was silly, well he is right, I could simply define new coordinate system but, sadly software I used - Graph Digitizer, does not have that option and even if it did, it would be extremely hard to determine units. So is there a simpler and faster version how to do this with the same or even better precision. Fitting a curve? Well yes, another option too, but the fact is that the difference between the volumes is so small that the software might use the same functions for every balloon - meaning the same volume for all of them |
| Jan5-13, 04:21 PM | #7 |
|
Recognitions:
|
You might be able to bring more physics into the analysis. For example, is the ballon being inflated by a source that is roughly at constant pressure over several frames just before the ballon blows up? Is there a known solution to an idealized version of the experiment? (e.g. blowing up a perfectly spherical ballon). Does the formula for the idealized version suggest fitting some linear or quadratic formulat for V(t) to several frames of data? |
| Jan7-13, 07:02 PM | #8 |
|
|
|
| New Reply |
| Thread Tools | |
Similar Threads for: How to determine volume from a picture?
|
||||
| Thread | Forum | Replies | ||
| Determine volume of HCl added to propionic acid to get pH=1 | Biology, Chemistry & Other Homework | 1 | ||
| Heisenberg picture describes emission, Schroedinger picture does not | Quantum Physics | 12 | ||
| Determine the Volume of the solid ? | Calculus & Beyond Homework | 2 | ||
| How do I determine volume of salt water mixture before mixing? | Chemistry | 3 | ||
| Best way to determine the weight/volume of a grain of sand/salt | Introductory Physics Homework | 2 | ||