Author |
Topic |
|
ali
Iran
110 Posts |
Posted - Sep 11 2020 : 02:09:53
|
Dear Nigel
I wrote codes for remove white space of image with Delphi satanadrd Timage which you can see in the attachments image input personal photos and result photo. I want to remove other color space of color for example blue or red or all color space for example similar in the attachments photo.
Please help me or is better you make one fuction for this pesonel photos. I want to you fix with imageen and if you do not fix then unfortunately I force for make it with Delphi satanadrd Timage. I sure which it fuction is useful for imageen.
Best Regards
Ali Abbasi
|
|
xequte
38173 Posts |
|
ali
Iran
110 Posts |
Posted - Sep 11 2020 : 02:47:28
|
Hi Nigel
Thank you for your attention.
This program is web base with unigui framework. So I most use Timage component of delphi or none visual other components. I think most use image delphi with ImageenIO.
I can not use chromakey because background image may various color.
Best Regards
Ali Abbasi |
|
|
xequte
38173 Posts |
Posted - Sep 11 2020 : 03:00:11
|
Looking at your input photo you should be able to use TImageEnProc.AutoCrop. It would not require a visual component.
Nigel Xequte Software www.imageen.com
|
|
|
ali
Iran
110 Posts |
Posted - Sep 11 2020 : 03:07:09
|
Thank you very much I know which I do not require to visual components, but for show for user from original photo to result photo I must use Timage component. I got it and I make it.
Best Regards
Ali Abbasi |
|
|
ali
Iran
110 Posts |
Posted - Sep 12 2020 : 01:52:41
|
Hi
1. I changed Crop_Margin to 0 and I can not Complete and accurate crop white space.
rect := IEDBView.Proc.AutoCrop( 0, clWhite, False ); IEDBView.Proc.Crop( max( rect.Left - 0, 0 ), max( rect.Top - 0, 0 ), min( rect.Right + 0, IEDBView.IEBitmap.Width ), min( rect.Bottom + 0, IEDBView.IEBitmap.Height ) );
2. Also do you have codes for crop image with background for various color photos? You can see in the attachment photos.
Best Regards
Ali Abbasi
|
|
|
xequte
38173 Posts |
|
|
Topic |
|