05-09-2013 01:34 AM - edited 05-09-2013 01:35 AM
Hi Everyone,
After getting the radius of the bmp file for each pixel, I want to use the radius to get the result *mpHI*, here's the formula: mpHI = a (constant) x radius^2 and after getting the mpHI, I wanted to round it off to get an integer.
Can someone show me how can I this be done?
Thanks so much!
05-09-2013 04:02 AM
Well, looks like I had too much time in my hands today.
See the attached.
Kas
05-09-2013 09:49 AM - edited 05-09-2013 11:50 AM
Enriquez wrote:After getting the radius of the bmp file for each pixel, I want to use the radius to get the result *mpHI*, here's the formula: mpHI = a (constant) x radius^2 and after getting the mpHI, I wanted to round it off to get an integer.
This question is pure gibberish.
A file does not have a radius.
As a first approximation, each pixel has a radius of 0.5 (in units of pixels).
The title mentions a phase but the body of the message does not. What is mpHI?
There has to be more to it! Can you show us one of your bmp pictures (save it as png before attaching).
LabVIEW allows you to round up, round down, and round to the nearest integer. What final datatype do you want?
05-11-2013 01:18 AM
Hi altenbach,
I have made some changes to my program, mpHI is just a term that i used:P Ive attached my vi below and it goes with the formula to get my phase result:)
Thanks