// Path: app/src/main/java/org/hschott/camdroid/ConfigurationFragment.java
// public abstract class ConfigurationFragment extends Fragment {
// 
//     private Toast toast;
// 
//     public ConfigurationFragment() {
//         super();
//     }
// 
//     public abstract int getLayoutId();
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
//         this.toast = Toast.makeText(this.getActivity(), null,
//                 Toast.LENGTH_SHORT);
// 
//         View c = inflater.inflate(R.layout.configcontainer_ui, null);
// 
//         View v = inflater.inflate(this.getLayoutId(), null);
//         ((ViewGroup) c.findViewById(R.id.container))
//                 .addView(v);
// 
//         return c;
//     }
// 
//     @Override
//     public void onPause() {
//         super.onPause();
//     }
// 
// 
// 
//     public void showValue(Object text) {
//         if (this.toast != null) {
//             this.toast.setText(text.toString());
//             this.toast.show();
//         }
//     }
// 
// }
// 
// Path: app/src/main/java/org/hschott/camdroid/OnCameraPreviewListener.java
// public interface FrameDrawer {
// 	public void drawBitmap(Bitmap bitmap);
// 
// 	public DisplayMetrics getDisplayMetrics();
// }


import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SeekBar;
import org.hschott.camdroid.ConfigurationFragment;
import org.hschott.camdroid.OnCameraPreviewListener.FrameDrawer;
import org.hschott.camdroid.R;
import org.opencv.core.Core;
import org.opencv.imgproc.Imgproc;

                        @Override
                        public void onStartTrackingTouch(SeekBar seekBar) {
                        }

                        @Override
                        public void onStopTrackingTouch(SeekBar seekBar) {
                        }
                    });

            return v;
        }
    }


    public NormalizeGrayProcessor(FrameDrawer drawer) {
        super(drawer);
    }

    @Override
    public Fragment getConfigUiFragment(Context context) {
        return Fragment.instantiate(context, NormalizeGrayUIFragment.class.getName());
    }

    @Override
    public FrameWorker createFrameWorker() {
        return new NormalizeGrayFrameWorker(drawer);
    }

    public class NormalizeGrayFrameWorker extends AbstractOpenCVFrameWorker {
// Path: app/src/main/java/org/hschott/camdroid/ConfigurationFragment.java
// public abstract class ConfigurationFragment extends Fragment {
// 
//     private Toast toast;
// 
//     public ConfigurationFragment() {
//         super();
//     }
// 
//     public abstract int getLayoutId();
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
//         this.toast = Toast.makeText(this.getActivity(), null,
//                 Toast.LENGTH_SHORT);
// 
//         View c = inflater.inflate(R.layout.configcontainer_ui, null);
// 
//         View v = inflater.inflate(this.getLayoutId(), null);
//         ((ViewGroup) c.findViewById(R.id.container))
//                 .addView(v);
// 
//         return c;
//     }
// 
//     @Override
//     public void onPause() {
//         super.onPause();
//     }
// 
// 
// 
//     public void showValue(Object text) {
//         if (this.toast != null) {
//             this.toast.setText(text.toString());
//             this.toast.show();
//         }
//     }
// 
// }
// 
// Path: app/src/main/java/org/hschott/camdroid/OnCameraPreviewListener.java
// public interface FrameDrawer {
// 	public void drawBitmap(Bitmap bitmap);
// 
// 	public DisplayMetrics getDisplayMetrics();
// }


// Path: app/src/main/java/org/hschott/camdroid/processor/NormalizeGrayProcessor.java
import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SeekBar;
import org.hschott.camdroid.ConfigurationFragment;
import org.hschott.camdroid.OnCameraPreviewListener.FrameDrawer;
import org.hschott.camdroid.R;
import org.opencv.core.Core;
import org.opencv.imgproc.Imgproc;


                        @Override
                        public void onStartTrackingTouch(SeekBar seekBar) {
                        }

                        @Override
                        public void onStopTrackingTouch(SeekBar seekBar) {
                        }
                    });

            return v;
        }
    }


    public NormalizeGrayProcessor(FrameDrawer drawer) {
        super(drawer);
    }

    @Override
    public Fragment getConfigUiFragment(Context context) {
        return Fragment.instantiate(context, NormalizeGrayUIFragment.class.getName());
    }

    @Override
    public FrameWorker createFrameWorker() {
        return new NormalizeGrayFrameWorker(drawer);
    }

    public class NormalizeGrayFrameWorker extends AbstractOpenCVFrameWorker {
        public NormalizeGrayFrameWorker(FrameDrawer drawer) {