Finding Length/Height in image

  • Permalink
  • submit to reddit
  • Email
  • Follow


hi all! 

i'm new to matlab and i've to use this program as part of my project.

my project requires matlab to:
- find the height of the player from ground to knee level

i'm able to convert the image to a rather clear bw image. however, i do not know how to target at the spot where i want to find the length at.

can someone give some suggestion?
your help would be very much appreciated :)

thanks
0
Reply serena 3/2/2011 1:05:22 AM

See related articles to this posting


On Mar 1, 8:05=A0pm, "serena " <moonstruckseren...@hotmail.com> wrote:
> hi all!
>
> i'm new to matlab and i've to use this program as part of my project.
>
> my project requires matlab to:
> - find the height of the player from ground to knee level
>
> i'm able to convert the image to a rather clear bw image. however, i do n=
ot know how to target at the spot where i want to find the length at.
>
> can someone give some suggestion?
> your help would be very much appreciated :)
>
> thanks

--------------------------------------------------------
Sure.  But first of all, where did you post your image?  Give the URL
to the web hosting site where you uploaded it, such as one you'd get
if you uploaded to uploadhouse.com

Secondly, do you want the height in pixels, or real world units?  If
you want it in real world units, you have to know how many pixels
correspond to 1 cm, such as b y imaging an object of known length like
a ruler.

Third, does it have to be automatic or can it be manual?  If it can be
manual, just call improfile and find the distance in pixels between
the first coordinate and the last coordinate.  Then convert to real
world units if you have a calibration scale factor.  If it has to be
automatic, then you have to segment out your person from the
background somehow, for example by thresholding.  Then sum the array
horizontally to get a vertical profile, and then use find() to find
the row (line) where the segmented person starts and stops (use the
'first' and 'last' option in find()).  Then convert to real world
units if required.

So if you have any more questions, post your image and your code and
clearly and unambiguously describe what the trouble is.
-ImageAnalyst
1
Reply ImageAnalyst 3/2/2011 1:49:26 AM

> --------------------------------------------------------
> Sure.  But first of all, where did you post your image?  Give the URL
> to the web hosting site where you uploaded it, such as one you'd get
> if you uploaded to uploadhouse.com
here's the link!
http://img2.uploadhouse.com/fileuploads/8294/829407265e5e6c45863a0f680a9e022f04db41a.jpg

> Secondly, do you want the height in pixels, or real world units?  If
> you want it in real world units, you have to know how many pixels
> correspond to 1 cm, such as b y imaging an object of known length like
> a ruler.
i would want the height in real world units eventually. 
how would i be able to find out how many pixels correspond to 1 cm?
referring to my image link above, i do know the length of the stick (if there is a need for a known length in the image?)

> Third, does it have to be automatic or can it be manual?  If it can be
> manual, just call improfile and find the distance in pixels between
> the first coordinate and the last coordinate.  Then convert to real
> world units if you have a calibration scale factor.  If it has to be
> automatic, then you have to segment out your person from the
> background somehow, for example by thresholding.  Then sum the array
> horizontally to get a vertical profile, and then use find() to find
> the row (line) where the segmented person starts and stops (use the
> 'first' and 'last' option in find()).  Then convert to real world
> units if required.

at the moment, going step by step, it would be manual.

> So if you have any more questions, post your image and your code and
> clearly and unambiguously describe what the trouble is.
> -ImageAnalyst
i'll give it a try, i'm sure i'll be back here ;)
thanks ImageAnalyst!
0
Reply serena 3/2/2011 2:16:06 AM

plz serena send me cod eif u hav
0
Reply atulyadav (1) 2/12/2014 5:57:54 PM
comp.soft-sys.matlab 202840 articles. 523 followers. Post

3 Replies
1807 Views

Similar Articles

[PageSpeed] 52


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

find image width and height
I am unable to find image height and width in mozilla firefox. My code is working in IE but not in Mozilla. How can i find image width and height in mozilla? function check(sel) { if(sel != "") { document.getElementById('newImg').src = sel; document.getElementById('newImgDiv').style.visibility = "visible"; } } <input id="file" type="File" size="8" name="file" onchange="check(this.value);"> <div id="newImgDiv" style="visibility:hidden"> <img id='newImg' one...

how to find the length of the coloured line in an image
i have an image with white background, having red color line with dimensions, i need to draw another line say(which is coloured blue) and with reference to the red line ,i need to find out the length of the blue line which i have drawn in the image.any suggestions ,how to do this? if you want the image i will upload.. pls help me... ////// Below code the image(pic29.jpg) already having the red & green line and this program finds the length of green ; i have drawn a blue line in the image using ginput after that i don't know how to proceed to find the length of the blue line// I...

Find length of segmented object in 3D images
Hello everyone. I have a problem finding the length of objects that are roughly curving cylinders from 3D images. The objects may curve and snake in any orientation. Segmentation of the objects is no problem, and I planned to find the lengths by paring the segmentation masks back to their skeleton and fitting a spline to the coordinates left in the matrix. Unfortunately my experience ends at getting the skeleton - can anybody help me or suggest a work-flow? At the moment I have each object in it's own logical matrix and have taken both the linear index of each 'on' pixel a...

Finding Images in FileName\Image
I'm trying to move my images from my main folder to an image folder for the database to store pictures of animals. I borrowed code that works great if I put all the images in the main folder where the db is located. I would like to move them to their own folder and I don't know where to begin. here is the code: Private Sub Form_Activate() 'find the path of the current database 'which is where the jpegs are stored Set db = CurrentDb filename = db.Name pathname = Mid(filename, 1, Len(filename) - Len(Dir(filename))) End Sub _______________________ Private S...

Find image in image (quickly)
Hello Tcl People! My problem: I've got two photo images, one small (e.g. 32x32) and one big (= screen dump, e.g. 1280x1024), and I need the coordinates of the first (top/= left) place where the small one "occurs" in the big one (if it occurs in it= at all). What I've done so far: With img:raw, I put the two images raw bitmaps/raste= rs (3 * 32 * 32 bytes and 3 * 1280 * 1024 bytes) into two strings. Doing th= e search manually would be to slow. I'd have to do at least 1280 * 1024 [st= ring range] calls, and more. So I converted both rasters to hex with [binar=...

Matching height of colorbar to height of image
I would like to match the height of a colorbar to the height of my image. I have seen questions on this from a few years back, but have not seen a solution. I attempted to set the height position property of the colorbar to match the height position property of the image. However, the height image property does not appear to be the height of the image, but the height of a box around the image. To test this, I tried the following: pcolor (rand (20,100)); plotAxis = gca; colorbarHandle = colorbar; axis image; get (plotAxis, 'Position') get (colorbarHandle, &#...

fingerprint image and finding wavelength image
hi i need to find the wavelength to my image which is gray level image not colored image i work on fingerprint image i need to find its ferquancy image to apply gabor filter for enhance my image any help please thanks,alyaa hi to all ,i need answer to my Q before any help i thankful alyaa. alyaa wrote: > > > hi > i need to find the wavelength to my image which is gray level > image > not colored image i work on fingerprint image i need to find its > ferquancy image to apply gabor filter for enhance my image any help > please > thanks,alyaa Did you get answer for ...

find an sub-image in another image
Hi , I have an image file and it basicaly contains the image of a few objects (e.g. a few cars , a few scooters etc.) All the images that appears in this big image are a subset of the library. I have to find out which objects appears how many times in the same image and where does it appear (the coordinates). Simplications: The images in the big image are unrotated and don't overlap. Morever in the big image, the sub-images are not scaled. i.e. size of subimage in library (100*100) = size of subimage in big picture. I am newbie in matlab image processing and can someone guide me with t...

i have a jpg image.i want to find vegetative area and count trees in that image.im able to count trees but for finding veg i hav used mathworks demo im getting error in CIR = multibandread('pari
i have a jpg image.i want to find vegetative area and count trees in that i= mage.im able to count trees but for finding veg i hav used mathworks demo i= m getting error in CIR =3D multibandread('paris.lan', [512, 512, 7], 'uint8= =3D>uint8',... plzz help me to find vegatation in jpg image with example ...

Finding Defect fuse images from set of fuse images
Hi, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am very new to Lab VIEW 8.0 &amp; IMAQ vision.Pls help in my small project. &nbsp; In the attached zipped folder&nbsp;there are&nbsp;images of electric fuses. I have to write&nbsp;a LabVIEW program that detects:1. the broken or damaged fuses in images 7 and 82. the orientation (up/down) of the wire in the other images. &nbsp; regards, Suresh Kolli fuse.zip: http://forums.ni.com/attachments/ni/170/161849/1/fuse.zip Do you need help with something specific or do you want s...

unite areas in logic image / find object in image
Hello! I'm doing a kind of image-recognition, searching a still image for an object with a certain color(i.g. a ball). Up to now I separated the colored-area via logical value-decisions in the RGB-matrix (e.g. R>20 & G<....) My problem is, that nearly always appear more than 1 region of matching pixels. Trying to reunite them with bwmorph-actions does't seem to be an effective solution. Anyone could help me finding a fast and more effective solution? Thanks in advance, tobias ...

How to find image centroid & seperation between two images
How to find image&nbsp;centroid and seperation between the images, i have 2 images pixel values as shown in the picture i should calculate the centroid of the image &amp; find the&nbsp;distance of seperation of the image. help me how to do this I am using LabView 7.1 &nbsp; thanks sk&nbsp; &nbsp; &nbsp; New Folder.zip: http://forums.ni.com/attachments/ni/170/181871/1/New Folder.zip Do you have IMAQ Vision?&nbsp; This is not part of what is shipped with LabVIEW but is an additional software package. Matt I have a center of energy program similar to the one u...

How to find stereo image correspondence using the points finded by harris detector?
I am doing a project to find the image correspondence of a pair of stereo image. However, i cannot find any method that can match the images successfully. Can anyone give me some suggestion or teach me how to solve this problem? On Dec 30, 12:07=A0pm, "law kin ki" <lawki...@gmail.com> wrote: > I am doing a project to find the image correspondence of a pair of stereo= image. However, i cannot find any method that can match the images success= fully. Can anyone give me some suggestion or teach me how to solve this pro= blem? -----------------------------------------...

How do I find the ”unblurred” frames in the video based on the image statistics property of a image
I am working on a problem that is "removing motion blur from the video". I have figured out the algorithm . courtsey (Three-Stage Motion Deblurring from a Video) 1) First, the ”unblurred” frames in the video have to be found based on the image statistics. 2)Then the blur functions can be obtained by comparing the blurred frames with the unblurred ones 3)Finally a standard deconvolution algorithm i to reconstruct the video How do I find the ”unblurred” frames in the video based on the image statistics of a image ...

find correlation when one cropped image move on other image and check where corrleation is maximum
%load image1 imshow(I1); I2=imcrop(I1,[178.5 0.5 44 285]); % cropped image of main image 1 size(I2) imshow(I2) %load image2 imshow(I3); I4=imcrop(I3,[2.5 0.5 46 285]); %cropped image of main image 2 [r c]=size(I4); imshow(I4); I5=imcrop(I2,[4.5 123.5 37 65]); %this is the one window cropped by cropped image of main image 1 imshow(I5); [r1 c1] = size(I5); I4r=I4(:,:,1); size(I4r) % g=I4(:,:,2); % b=I4(:,:,3); I5fr=I5(:,:,1); % show red band size(I5fr) % fg=I5(:,:,2); % show red band % fb=I5(:,:,3); x=1; y=1; for i=1:r...

Help on Matlab code for finding Local Weighted Variance of An Image for Image Denoising
Hi all, Can Any one help me in finding the Weight variance in local window in an Image that corresponds to the Following IEEE magzine References [1] Detlev Marpe,Hans L.Cycon, Gunther Zander, and Kai Uwe Barthel ,"Context Bsaed Denoising Of Images Using Iterative Wavelet thresholding" [2] S g. Chang, B. Yu and M.Vetterli "Spatially Adaptive Wavelet Thresholding With Context Modeling for Image Denoising", Porc. IEEE Oct 1998 ...

How do I get the image height width when generating image from PHP (getimagesize does seem to work)
Hi, Is it possible to obtain the width/ height of an image when that image is dyanically created using a PHP script and passing GET attributes. For example: <img src="images/showImage.php?image_id=5" /> My images are created from images stored on the server, their paths stored on in database table and retrieved using the GET image_id and PHP script (showImage.php). Because the images are different sizes I would like to be able to use a PHP function / class that can take an image path and generate the IMG width and height attributes. This would just tidy up the page when load...

dividing a color image image in overlapping blocks and finding motion blurr for each block
i m doing a project on "forgery detection using motion blur". In that, i need to divide my image in overlapping blocks and then process each block. Can u please provide a code snipplet for the same. ...

finding the four corners pixel location values of a small reectangular image in a large image
hi , can anybody help me in finding the edges(4 corners) of a small rectangular image in a large image. i have to find the both the index value of the four corners and their corresponding x and y pixel location. the small imagew is look like arectangle but it is not an exact rectangle. please help me to find the corners. On Mon, 18 Jan 2010 23:12:03 -0500, Usman Zafar <usman_zafar_iiui@hotmail.com> wrote: > hi , > can anybody help me in finding the edges(4 corners) of a small > rectangular image in a large image. > i have to find the both the index value of t...

How to find difference between gif (Single frame GIF image)and gif animations(moving gif images)
My project in http proxy server(using tcp/ip) so how to find it gif (Single frame GIF image) or gif animation. what is the difference in there body and header content. For GIF animations starting of body there gif89az is it correct? On 24 May 2006 03:58:06 -0700, "sandeep" <sandeep.k@incore.in> wrote: >My project in http proxy server(using tcp/ip) so how to find it gif >(Single frame GIF image) or gif animation. what is the difference in >there body and header content. > >For GIF animations starting of body there gif89az is it correct? An animated GIF is a...

convert a 2D jpg image into a 3d image and the finding the x,y and z coordinates of a place
hi, this is anjana i am doing a project to find the coordinates of place using matlab . we are using imtool to get the pixel coordinates of the image . we want to convert a 2D image into 3D and then work on it to find the coordinates of a place. On Oct 29, 9:41=A0am, "anjana achary" <anjanaach...@rediffmail.com> wrote: > hi, this is anjana i am doing a project to find the coordinates of place = using matlab . we are using imtool to get the pixel coordinates of the imag= e . we want to convert a 2D image into 3D and then work on it to find the c= oordinates of a place. ----...

Regarding the continuous process of getting an image from webcam and then processing it by identifying the two points in an image, and then finding the distance between the two black points!
Hi. I was wondering, is it possible to write all the required codes in a .m file in Matlab, which will then become an automatic process for acquiring different images, and then processing it, or do i have to enter a given code everytime to execute the results. Can't this process be automated? Please help me on this topic. Thanks "Siddharth Magazine" <magazinesiddharth@hotmail.com> wrote in message news:hvc8rb$j6g$1@fred.mathworks.com... > Hi. I was wondering, is it possible to write all the required codes in a > .m file in Matlab, which will then become an ...

Find the moment of an image
Hi People I am working on rotation, translation and scale invariant object recognition. I need to calculate the Hu's invariants based on moments. Please let me know how do I calculate it. May I know the range within which the value of moments for a grayscale image should fall. Kindly let me know as soon as possible. It is an urgent work. Thanks and Regards Ashok http://en.wikipedia.org/wiki/Image_moments ...

find Spots in the Image
I wuold like to do a test by Using Matlab image processing. 1. find whether a white image contains black spots 2. if there are black spots in it, find whether black spots contain white hole. (should be able to detect and ignore blobs that touch the image boundary). 3. we should find there are any spots that touch the image boundary.and How many? i really need help. i hope i can get some ideas. thanks every one the image is a grey level, so it is black and white only "Yi " <heyinba0904@hotmail.com> wrote in message <h96qbb$ug$1@fred.mathworks.com>... > I wuol...