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.
生成されたプロットやグラフを操作する代わりに、既存の画像を使用して画像処理を実行したいと考えています。ある人は次のようにsage書いています。
sage
from pylab import imread image = imread(DATA+"image.png")
公式のヘルプ紹介は、このタスク/ユースケース/問題に関して沈黙しています。
Google で検索して 30 分間試してみたところ、実際には非常に簡単であることがわかりました。
ノートブックには、起動元のフォルダーへのファイル アクセスがあります。したがって、自分のhomeフォルダーで開始した場合、フォルダーからすべてのファイルにhome直接アクセスできます。
home
from pylab import imread image = imread("image.png")