Skip to content

Commit 0a99b53

Browse files
committed
pika updates
1 parent 9117567 commit 0a99b53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

homework/homework2/hw2.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ md"""
396396
👉 Define a `least_energy` function which returns:
397397
1. the lowest possible total energy for a seam starting at the pixel at $(i, j)$;
398398
2. the column to jump to on the next move (in row $i + 1$),
399-
which is one of $j-1$, $j$ or $j+1$, up toboundary conditions.
399+
which is one of $j-1$, $j$ or $j+1$, up to boundary conditions.
400400
401401
Return these two values in a tuple.
402402
"""
@@ -642,7 +642,7 @@ end
642642

643643
# ╔═╡ d88bc272-f392-11ea-0efd-15e0e2b2cd4e
644644
if shrink_recursive
645-
recursive_carved = shrink_n(img, 200, recursive_seam)
645+
recursive_carved = shrink_n(img, 3, recursive_seam)
646646
md"Shrink by: $(@bind recursive_n Slider(1:200, show_value=true))"
647647
end
648648

@@ -697,7 +697,7 @@ end
697697

698698
# ╔═╡ ddba07dc-f3b7-11ea-353e-0f67713727fc
699699
# Do not make this image bigger, it will be infeasible to compute.
700-
pika = decimate(load(download("https://art.pixilart.com/901d53bcda6b27b.png")),77)
700+
pika = decimate(load(download("https://art.pixilart.com/901d53bcda6b27b.png")),150)
701701

702702
# ╔═╡ 73b52fd6-f3b9-11ea-14ed-ebfcab1ce6aa
703703
size(pika)

0 commit comments

Comments
 (0)