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
 Threshold range

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

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
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
zhengyuanyi27 Posted - May 01 2021 : 01:58:32
Could somebody tell me whether Is it possible to set a threshold range, such as 100-200, all the pixels <100 and the pixels >200 will be black.
I tried ImageEnVect1.Proc.ConvertToBWThreshold(100), while it can only set the pixels <100 be black.
Thanks!!

2   L A T E S T    R E P L I E S    (Newest First)
zhengyuanyi27 Posted - May 05 2021 : 06:13:22
Hi Nigel, Thanks!!
xequte Posted - May 03 2021 : 21:30:38
Hi

If this is a grayscale image, you should be able to do it using

CastColorRange( CreateRGB( 0,0,0 ),
CreateRGB( 100, 100, 100 ),
CreateRGB( 0,0,0 ));
CastColorRange( CreateRGB( 200, 200, 200 ),
CreateRGB( 255, 255, 255),
CreateRGB( 0,0,0 ));

https://www.imageen.com/help/TImageEnProc.CastColorRange.html

Otherwise just work directly with the scanlines:

https://www.imageen.com/help/TIEBitmap.ScanLine.html

Nigel
Xequte Software
www.imageen.com