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
 Few bugs in v5.2.0
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spetric

Croatia
308 Posts

Posted - Mar 13 2015 :  15:08:41  Show Profile  Reply
Hi,

I don't know if these issues are solved in 6.0.0, but as I have 5.2.0, here is a little report:

1. When EdgeDetect_ShenCastan is performed with WindowSize > 51
program throws an error (access violation).

2. After performing this set of instructions:


   TImageEnProc *ienProc = new TImageEnProc(this);
   ienProc->AttachedIEBitmap = editImage;
   ienProc->ConvertToGray();
   ienProc->AttachedIEBitmap = 0;
   delete ienProc;
   editImage->PixelFormat = ie8g;
   editImage->DrawToTIEBitmap(_workImage, 0, 0);


last method does not produce correct result, although images are the same size and same PixelFormat (ie8g). Image is around 3/4 width of editImage and stretched to original width.

When the last instruction is replaced with:


editImage->CopyRectTo(_workImage->ieBitmap, 0, 0, 0, 0, editImage->Width, editImage->Height);


resultant image is rendered correctly.

When method DrawToTIEBitmap is applied on 24-bit images, result is correct.

With best regards,
Siniša








xequte

38507 Posts

Posted - Mar 15 2015 :  19:37:46  Show Profile  Reply
Hi Sinisa

1. Thanks, can reproduce and will resolve shortly

2. Having trouble reproducing this in 6.0.0. This is the code I add to the PhotoEn demo:

procedure TMainForm.Button1Click(Sender: TObject);
var
  ienProc : TImageEnProc;
  ABitmap: TIEBitmap;
begin
   ABitmap := TIEBitmap.create;
   ABitmap.Assign( (ActiveMDIChild as TMDIChild).ImageEnView1.IEBitmap );

   ienProc := TImageEnProc.Create(Self);
   ienProc.AttachedIEBitmap := ABitmap;
   ienProc.ConvertToGray();
   ienProc.AttachedIEBitmap := nil;
   ienProc.free;

   ABitmap.PixelFormat := ie8g;
   ABitmap.DrawToTIEBitmap((ActiveMDIChild as TMDIChild).ImageEnView1.IEBitmap, 0, 0);
   (ActiveMDIChild as TMDIChild).ImageEnView1.Update;

   ABitmap.free;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Mar 16 2015 :  14:20:21  Show Profile  Reply
Hi Nigel,

I'll try to reproduce issue 2. as prior to setting
editImage->PixelFormat = ie8g; I have called edge_sobel method.




Go to Top of Page

xequte

38507 Posts

Posted - Mar 18 2015 :  17:55:24  Show Profile  Reply
Hi Sinisa

We have fixed #1 for 6.0.1.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Mar 20 2015 :  07:44:01  Show Profile  Reply
When image is single color background (let's say completely red image RGB = (255, 0, 0), method:

double value = PaintView->Proc->CalcStdDev();

throws an error: "invalid floating point operation".
Go to Top of Page

xequte

38507 Posts

Posted - Mar 24 2015 :  12:23:17  Show Profile  Reply
Thanks, we'll investigate.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38507 Posts

Posted - Mar 30 2015 :  02:19:44  Show Profile  Reply
Thanks, this is fixed for the next update.

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