私はopencvライブラリでアンドロイドプロジェクトを行っており、スーパーピクセルのアルゴリズムを使用しています。一部のデバイスにアルゴリズムを適用した後、画像は次のように粗く見えます:
newMat=new Mat();
Utils.bitmapToMat(image,newMat,true);
SuperpixelSLIC x= Ximgproc.createSuperpixelSLIC(newMat, Ximgproc.SLIC,rows/9,(float)25);
x.iterate(num_iterations);
if (min_element_size>0)
x.enforceLabelConnectivity(min_element_size);
Mat mask=new Mat();
x.getLabelContourMask(mask,true);
newMat.setTo( new Scalar(0,0,255),mask);
Utils.matToBitmap(newMat,image);
Mat labels=new Mat();
x.getLabels(labels);
final ImageView g=(ImageView)view.findViewById(R.id.imageView5);
g.setImageBitmap(image);
写真を撮ったり選んだりした後、カットしたり回転したりして、品質が低下するのでしょうか?