Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は画像処理が初めてで、c# で emgu cv を使用していますが、問題があります。画像のRGB値からR、G、Bピクセル値を取得するにはどうすればよいですか?
RGB値を取得するために必要なものは次のとおりです。
//load image Image<Bgr, byte> image = new Image<Bgr, byte>("sample.png"); //get the pixel from [row,col] = 24,24 Bgr pixel = image[24, 24]; //get the b,g,r values double b = pixel.Blue; double g = pixel.Green; double r = pixel.Red;
次のコマンドを ssh2_exec 経由で php に渡すのに問題があります。コマンドは次のとおりです。
./prog cat <<EOF a a a b b c d d EOF
問題は最初の行'cat <<EOF'です.phpは「EO
'cat <<EOF'