 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Liu Shan Guest
|
Posted: Thu Apr 19, 2007 7:53 am Post subject: Stitching Image |
|
|
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
|
Posted: Thu Apr 19, 2007 8:10 am Post subject: Re: Stitching Image |
|
|
"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
|
Posted: Thu Apr 19, 2007 8:10 am Post subject: Re: Stitching Image |
|
|
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
|
Posted: Sun Apr 22, 2007 8:05 am Post subject: Re: Stitching Image |
|
|
"Liu Shan" <liushan@ps-electronic.com> wrote:
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
|
Posted: Tue Apr 24, 2007 12:29 am Post subject: Re: Stitching Image |
|
|
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 |
|
 |
|
|
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
|
|