Asim-GDI GURU Level: Sage Registered: 29-07-2005 Posts: 54
Image Processing
Hi there,
I've already done that, just want to make sure is it the proper way of doing it...
All of you must have used the LASSO tool in any Image Processor like Adobe where the user can choose a fixed region to be processed by the Application.I made that using a region out of the user defined points ( where the user clicked, I recorded those points in array ) and then HITESTING against that region to see if the pixel ( under consideration of the process ) is in the region or not.If it is then it is processed otherwise it is left behind as it is.
I want to know is it the right way of doing this problem.Because this way it is simpler and not even wanting much memory.See just one region.
Anyone with a much simpler or correct way fo doing this..?
Regards,
Asim Siddiqui.
28-09-2005 at 11:48 AM
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 891
Re: Image Processing
Hi,
I believe that you are correct in your method.. ie.
store point at mousedown
set flag to indicate that you have got a region
capture mouse
use drawlassoo
store point at mouseup
on mousedown
if ptInRect (region) then
drag the region
else
start a new region/lassoo
end if
This is the way we do it, in my company, on object selection/dnd, etc.
Regards,
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
28-09-2005 at 02:24 PM
|
Asim-GDI GURU Level: Sage Registered: 29-07-2005 Posts: 54
Re: Image Processing
Hi there,
Well, you used to do this technique in simply another situation where there's no other way doing that.But I asked about the Lasso Tool Technique.I think there's no other technique in this situation too...
Because I asked this same question over several forums but couldn't get any other better technique.And even I've searched for this technique but all say about the technique I'm using.
Thanks for answering...