BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stitching Image

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Liu Shan
Guest





PostPosted: Thu Apr 19, 2007 7:53 am    Post subject: Stitching Image Reply with quote



Hi,

Does anybody know is there any BCB component to perform image stitching? I
don't mind to buy it if you can provide me info or links.

Very very thanks
Back to top
JD
Guest





PostPosted: Thu Apr 19, 2007 8:10 am    Post subject: Re: Stitching Image Reply with quote



"Liu Shan" <liushan@ps-electronic.com> wrote:
Quote:

Does anybody know is there any BCB component to perform
image stitching?

If you mean combining two images into one, that's simple.
For example, allocate a TBitmap and size it be able to hold
both images and then use TCanvas::CopyRect to copy the
images into the TBitmap.

~ JD
Back to top
Liu Shan
Guest





PostPosted: Thu Apr 19, 2007 8:10 am    Post subject: Re: Stitching Image Reply with quote



Very thanks for your reply.

The stitching means not only combining two image into one, but also can
overlap the same part, just like putting two landscape photos into one
perfect photo.

Anyway, very thanks for your suggestion.


Shan



"JD" <nospam (AT) nospam (DOT) com> wrote in message
news:4627032e$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Liu Shan" <liushan@ps-electronic.com> wrote:

Does anybody know is there any BCB component to perform
image stitching?

If you mean combining two images into one, that's simple.
For example, allocate a TBitmap and size it be able to hold
both images and then use TCanvas::CopyRect to copy the
images into the TBitmap.

~ JD
Back to top
JD
Guest





PostPosted: Sun Apr 22, 2007 8:05 am    Post subject: Re: Stitching Image Reply with quote

"Liu Shan" <liushan@ps-electronic.com> wrote:
Quote:


Please trim your posts.

Quote:
[...] but also can overlap the same part, just like putting
two landscape photos into one perfect photo.

That can be accomplished in much the same way.

Assuming ImageA and ImageB and ResultImage ....

Size ResultImage. Then (for non-perfect alignment) use
TCanvas::CopyRect to copy ImageA and then ImageB to
ResultImage. Then you have to blend the area that overlaps
from ImageA and ImageB onto ResultImage.

Blending 2 pixels is easy because it's a simple formula in
respect to the pixel's RGB value.

See this link for how to:

http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=article&group=borland.public.cppbuilder.graphics&item=29523&utag=

For a 50/50 blend, use a Weight of 127.

~ JD
Back to top
4N
Guest





PostPosted: Tue Apr 24, 2007 12:29 am    Post subject: Re: Stitching Image Reply with quote

JD, I think he's talking about an algorithm that automatically finds where
to attach 2 or more images in order to reconstruct a bigger image.
I've never seen components for that purpose.
I've seen a few programs like that but I dunno where to find articles/papers
either.
Liu Shan, if you are familiar with matemathics you could try to write some
code yourself, and in case you could ask for help in a NG related to
graphics algorithms, like

comp.graphics.algorithms
or
sci.image.processing

good luck!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.