Java API: corrected names of methods in Utils class; fixed bug in DMatch (thank for Hussein Abdinoor); added new utility method loadResource

This commit is contained in:
Andrey Kamaev
2011-08-09 11:46:27 +00:00
parent 13e392763b
commit d9d74678a9
11 changed files with 125 additions and 76 deletions

View File

@@ -137,7 +137,7 @@ public class puzzle15View extends SampleCvViewBase implements OnTouchListener {
drawGrid(cols, rows);
Bitmap bmp = Bitmap.createBitmap(cols, rows, Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba15, bmp))
if (Utils.matToBitmap(mRgba15, bmp))
return bmp;
bmp.recycle();

View File

@@ -91,7 +91,7 @@ class FdView extends SampleCvViewBase {
Bitmap bmp = Bitmap.createBitmap(mRgba.cols(), mRgba.rows(), Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba, bmp))
if (Utils.matToBitmap(mRgba, bmp))
return bmp;
bmp.recycle();

View File

@@ -135,7 +135,7 @@ class ImageManipulationsView extends SampleCvViewBase {
Bitmap bmp = Bitmap.createBitmap(mRgba.cols(), mRgba.rows(), Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba, bmp))
if (Utils.matToBitmap(mRgba, bmp))
return bmp;
bmp.recycle();

View File

@@ -56,7 +56,7 @@ class Sample1View extends SampleViewBase {
Bitmap bmp = Bitmap.createBitmap(getFrameWidth(), getFrameHeight(), Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba, bmp))
if (Utils.matToBitmap(mRgba, bmp))
return bmp;
bmp.recycle();

View File

@@ -54,7 +54,7 @@ class Sample2View extends SampleCvViewBase {
Bitmap bmp = Bitmap.createBitmap(mRgba.cols(), mRgba.rows(), Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba, bmp))
if (Utils.matToBitmap(mRgba, bmp))
return bmp;
bmp.recycle();

View File

@@ -25,6 +25,16 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Tutorial 2.1 Builder.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>

View File

@@ -56,7 +56,7 @@ class Sample4View extends SampleViewBase {
Bitmap bmp = Bitmap.createBitmap(getFrameWidth(), getFrameHeight(), Bitmap.Config.ARGB_8888);
if (Utils.MatToBitmap(mRgba, bmp))
if (Utils.matToBitmap(mRgba, bmp))
return bmp;
bmp.recycle();