English 中文(简体)
多管齐下
原标题:Multiple stitching
  • 时间:2012-01-15 13:32:11
  •  标签:
  • c#
  • image

I used the code from Automatic Image Stitching with Accord.net
i changed the code to stitch multiple images

My code after selecting multiple files was

img1 = new Bitmap(imgName[0]);  

页: 1

Blend blend = new Blend(homography, img1);  
pictureBox.Image = blend.Apply(img2);  
img1 = new Bitmap(blend.Apply(img2));`

我增加了<代码>img1 = 新的比图(混合物.Apply(img2));。 这样一来,我就能够把第一种幻灯像作为我的复印件,而这是对另一个形象的描述。

接着,<>btnDoAll

for (int x = 1; x < NumOfFiles; x++)  
{  
  img2 = new Bitmap(imgName[x]);  
  btnHarris();  
  btnCorrelation();  
  btnRansac();  
  btnBlend();  
}

运行之后,除了在btnBlend c# hangs和显示vshost.exe停止工作时,根本就没有错误。

任何帮助纠正这种情况?

问题回答

问题在于,由此而产生的第一 st的形象并不平坦,必须改变为平坦的形象,然后才能塑造新的形象。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签