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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Artifacts in magnified layer - 16-bit grayscale
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
106 Posts

Posted - Nov 29 2020 :  21:30:19  Show Profile  Reply
I am using a magnified layer on a 16-bit grayscale image. When the image is not zoomed, the magnified layer (at 100%) appears ok.



When the underlying image is zoomed in, the magnified layers starts showing artifacts.



Moving the magnified layer out of the way shows the 'normal' image again.



Is there a way to avoid the magnified layer showing the artifacts? I have tried changing the pixel format and the zoom filters, but the artifacts still appear. Thank you.

xequte

38611 Posts

Posted - Nov 30 2020 :  04:15:32  Show Profile  Reply
Hi

Can you post this image, or email it to me.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Nov 30 2020 :  08:21:02  Show Profile  Reply
Here it is, as an attachment.

attach/yeohray2/2020113082051_IM_0001.zip
93.19 KB
Go to Top of Page

xequte

38611 Posts

Posted - Dec 01 2020 :  19:57:53  Show Profile  Reply
Hi

I was unable to reproduce that with the demo:

\Demos\Testing\Display\Magnify2\Magnify2.dpr

Can you give me the precise steps?

Are you enabling the resample filter for the layer?

TIEImageLayer( ImageEnView1.Layers[1] ).ResampleFilter := rfFastLinear;
TIEImageLayer( ImageEnView1.Layers[1] ).UseResampleFilter := True;

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Dec 01 2020 :  22:50:43  Show Profile  Reply
Thanks, turned out the artifacts was caused by me not setting the Manify.Source value to iemBackgroundLayer.
Go to Top of Page

xequte

38611 Posts

Posted - Dec 01 2020 :  23:21:25  Show Profile  Reply
OK, thanks for the update.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: