Re: Pixel values surrounding object of interest
- From: "Yair Altman" <altmanyDEL@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 13:07:33 -0400
Matlab has an undocumented handle-graphics property called
'PixelBounds'. However, note that it returns data in Java coordinates
(origin = top-left), rather than Matlab ones (origin = bottom-left).
Also, I have found some cases in which this value is undependable,
which is a real pity.
So, the solution I use is to retrieve the java handle of an object
(with FINDJOBJ in the File Exchange) and then calling the getLocation
function on this object:
jobj = findjobj(hobj);
objLocation = jObj.getLocation; % or: get(jobj,'Location')
Yair Altman
.
- Follow-Ups:
- Re: Pixel values surrounding object of interest
- From: J.Meyer
- Re: Pixel values surrounding object of interest
- References:
- Pixel values surrounding object of interest
- From: J.Meyer
- Pixel values surrounding object of interest
- Prev by Date: Re: figure resize
- Next by Date: Re: Windows notepad & fprintf
- Previous by thread: Pixel values surrounding object of interest
- Next by thread: Re: Pixel values surrounding object of interest
- Index(es):