using Images, ImageMetadata, TestImages, ImageView
pwd()
"/Users/a182501/quarto/program-chunk/posts"
= load("/Users/a182501/quarto/program-chunk/cat.jpeg");
source_image imshow(source_image);
size(source_image)
(360, 252)
= source_image[100:290, 100:180];
cropped_image imshow(cropped_image)
Dict{String, Any} with 4 entries:
"gui" => Dict{String, Any}("window"=>GtkWindowLeaf(name="", parent, w…
"roi" => Dict{String, Any}("redraw"=>Observables.ObserverFunction[Obs…
"annotations" => Observable(Dict{UInt64, Any}())
"clim" => Observable(CLim{RGB{Float64}}(RGB{Float64}(0.0,0.0,0.0), RGB…
图像是列优先的,这意味着该第一个索引对应于y轴,第二个索引对应于x轴。这可能与其他编程语言不同。