ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Shrinking a selection

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
spetric Posted - Jan 26 2016 : 16:50:35
Hi,

Is it possible to shrink a selection (lasso) by some amount of pixels?

3   L A T E S T    R E P L I E S    (Newest First)
rmklever Posted - Jan 29 2016 : 14:14:06
Hi,

Maybe you could use a thinning procedure on the selection mask bitmap. Since Imageen has Canny Edge detection it shold also have a thinning procedure built in.

Just a thought


Roy M Klever
Klever on Delphi - www.rmklever.com
spetric Posted - Jan 29 2016 : 04:42:36
Thanks Nigel,

That will do the job.
xequte Posted - Jan 28 2016 : 18:19:24
Hi

There is not a built in method to do this (probably should be), but you should be able to do it by iterating through all the TImageEnView.PolySelPoints. The specific algorithm would be a matter of taste, but you could try decreasing X if X < selection horz center, and increasing if X > selection horz center, with the same in the Y dimension. That should give an agreeable result.

http://www.imageen.com/help/TImageEnView.PolySelPoints.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com