xZ6a33YaYEfmv
xZ6a33YaYEfmv

Reputation: 1816

C# Stitching small pictures into one large one

I have an objective: I need to join, for example 2 pictures like https://i.sstatic.net/sQQC5.jpg and https://i.sstatic.net/oDDMZ.jpg. In the result there has to be and image like https://i.sstatic.net/9xivu.jpg not https://i.sstatic.net/xrTnS.jpg.

I'll explain in words: I have some images with the same areas and I need to find the area, crop it in one image and after this join them.

Upvotes: 0

Views: 5764

Answers (3)

Libor
Libor

Reputation: 3303

I am developing .NET library called SharpStitch (commercial) which can do the job.

It uses feature-based image alignment for general purpose image stitching.

Upvotes: -1

Matt Warren
Matt Warren

Reputation: 10291

Take a look at this article, it's explains a possible solutions using the C# Aforge.NET image processing library

Upvotes: 2

Danny Varod
Danny Varod

Reputation: 18068

What you want to do is read the pixel values into arrays, then find overlapping area using an algorithm like correlation or min cut.

After finding coordinates of overlap, write out both images into new array, use coordinates relative to large image minus position of overlap in that source image plus position in destination image.

C# is not a factor in solving this, unless you meant to ask about existing .NET frameworks that can help.

Upvotes: 1

Related Questions