Tutorial4 sample renamed to Tutorial-2-MixedProcessing

pull/454/head
Alexander Smorkalov 12 years ago
parent 08cd51df1f
commit 902463b6e9
  1. 2
      samples/android/CMakeLists.txt
  2. 0
      samples/android/tutorial-2-mixedprocessing/.classpath
  3. 0
      samples/android/tutorial-2-mixedprocessing/.cproject
  4. 0
      samples/android/tutorial-2-mixedprocessing/.project
  5. 0
      samples/android/tutorial-2-mixedprocessing/.settings/org.eclipse.jdt.core.prefs
  6. 4
      samples/android/tutorial-2-mixedprocessing/AndroidManifest.xml
  7. 2
      samples/android/tutorial-2-mixedprocessing/CMakeLists.txt
  8. 0
      samples/android/tutorial-2-mixedprocessing/jni/Android.mk
  9. 0
      samples/android/tutorial-2-mixedprocessing/jni/Application.mk
  10. 4
      samples/android/tutorial-2-mixedprocessing/jni/jni_part.cpp
  11. 0
      samples/android/tutorial-2-mixedprocessing/res/drawable/icon.png
  12. 2
      samples/android/tutorial-2-mixedprocessing/res/layout/tutorial2_surface_view.xml
  13. 4
      samples/android/tutorial-2-mixedprocessing/res/values/strings.xml
  14. 10
      samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Sample2MixedProcessing.java
  15. 4
      samples/android/tutorial-4-mixed/res/values/strings.xml

@ -12,7 +12,7 @@ add_subdirectory(image-manipulations)
add_subdirectory(color-blob-detection)
add_subdirectory(tutorial-1-camerapreview)
add_subdirectory(tutorial-4-mixed)
add_subdirectory(tutorial-2-mixedprocessing)
add_subdirectory(tutorial-5-cameracontrol)
#hello-android sample

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.opencv.samples.tutorial4"
package="org.opencv.samples.tutorial2"
android:versionCode="21"
android:versionName="2.1">
@ -9,7 +9,7 @@
android:icon="@drawable/icon"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<activity android:name="Sample4Mixed"
<activity android:name="Sample2MixedProcessing"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboardHidden|orientation">

@ -1,4 +1,4 @@
set(sample example-tutorial-4-mixed)
set(sample example-tutorial-2-nativeprocessing)
if(BUILD_FAT_JAVA_LIB)
set(native_deps opencv_java)

@ -8,9 +8,9 @@ using namespace std;
using namespace cv;
extern "C" {
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_Sample4Mixed_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba);
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial2_Sample2NativeProcessing_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba);
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_Sample4Mixed_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba)
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial2_Sample2NativeProcessing_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba)
{
Mat& mGr = *(Mat*)addrGray;
Mat& mRgb = *(Mat*)addrRgba;

@ -6,6 +6,6 @@
<org.opencv.android.JavaCameraView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/tutorial4_activity_surface_view" />
android:id="@+id/tutorial2_activity_surface_view" />
</LinearLayout>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">OCV T2 Mixed Processing</string>
</resources>

@ -1,4 +1,4 @@
package org.opencv.samples.tutorial4;
package org.opencv.samples.tutorial2;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
@ -17,7 +17,7 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;
public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
public class Sample2MixedProcessing extends Activity implements CvCameraViewListener2 {
private static final String TAG = "OCVSample::Activity";
private static final int VIEW_MODE_RGBA = 0;
@ -58,7 +58,7 @@ public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
}
};
public Sample4Mixed() {
public Sample2MixedProcessing() {
Log.i(TAG, "Instantiated new " + this.getClass());
}
@ -69,9 +69,9 @@ public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setContentView(R.layout.tutorial4_surface_view);
setContentView(R.layout.tutorial2_surface_view);
mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial4_activity_surface_view);
mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial2_activity_surface_view);
mOpenCvCameraView.setCvCameraViewListener(this);
}

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">OCV T4 Mix Java+Native OpenCV</string>
</resources>
Loading…
Cancel
Save