親愛なる友人私は画像を二値化しようとしています。私はサークルにパターンをトリミングしますどんな面白いエッジ効果を避けるために、そのため私たちの「マスクは」Matlabの P = imread('Pattern.png');
P = 1-im2bw(P); % Keep black parts
Nmin = min(size(P));
% Crop into square, then circ
this tutorialsの例によると、このチュートリアルではテキストの代わりにアイコン(白黒)をマスクしたいと思っています。アイコンの右側はまだ暗いです。どのように私のアイコンの左側を作ることができます黒いストロークとアイコンの右側が行く白いストローク? <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="41px" hei
私は2つのscipy_sparse_csr_matrix 'a'とscipy_sparse_csr_matrix(boolean) 'mask'を持っています。真です。例えば >>>a
<3x3 sparse matrix of type '<type 'numpy.int32'>'
with 4 stored elements in Compressed Sparse Row for