Hi
This is not an easy image to convert because the background is as dark in the bottom left corner as the drawing.
But you could use thresholding, e.g.
ImageEnView1.Proc.ConvertToBWLocalThreshold( 8, ietMean );
Optionally with some smoothing:
ImageEnView1.Proc.ConvertToBWThreshold( -2 );
ImageEnView1.IEBitmap.PixelFormat := ie24RGB;
ImageEnView1.IEBitmap.SetTransparentColors( TColor2TRGB( clWhite ), 0, 0 );
ImageEnView1.IEBitmap.FeatherAlphaEdges( 1 );
ImageEnView1.IEBitmap.RemoveAlphaChannel( True, clWhite ); // Convert alpha back to white
Or Edge detection:
ImageEnView1.Proc.EdgeDetect_Sobel();
ImageEnView1.IEBitmap.PixelFormat := ie8g;
ImageEnView1.IEBitmap.GetIEVisionImage().canny(0. 166, 3 );
ImageEnView1.IEBitmap.Negative()
;
To draw the result onto another image use:
https://www.imageen.com/help/TIEBitmap.DrawToTIEBitmap.html
Nigel
Xequte Software
www.imageen.com