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:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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><project>/.externalToolBuilders/Tutorial 2.1 Builder.launch</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user