Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: preprocess with tiling #504

Merged
merged 34 commits into from
Nov 26, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0f50b63
feat: preprocess with tiling
cpaniaguam Nov 9, 2024
8c21154
Update preprocess_tiling.jl
cpaniaguam Nov 11, 2024
8cce54c
feat: preprocess_tiling
cpaniaguam Nov 15, 2024
d2afca0
feat: add se_disk2
cpaniaguam Nov 15, 2024
c7df300
Merge branch 'main' into 503-orchestrate-into-a-macro-function
cpaniaguam Nov 19, 2024
6656dfe
fix: rename ref_img to ref_image for consistency in preprocess_tiling…
cpaniaguam Nov 19, 2024
9a65271
test: preprocess_tiling
cpaniaguam Nov 19, 2024
9653851
feat: include preprocess_tiling.jl in IceFloeTracker.jl
cpaniaguam Nov 19, 2024
34f75c6
feat: enhance test for preprocess_tiling with additional image proces…
cpaniaguam Nov 19, 2024
727b154
feat: add rgb2gray function to convert RGB channels to grayscale
cpaniaguam Nov 19, 2024
5857dd5
feat: re-include preprocess_tiling.jl in IceFloeTracker.jl for improv…
cpaniaguam Nov 19, 2024
3457103
feat: add overloaded to_uint8 function for single numeric input
cpaniaguam Nov 19, 2024
45037df
feat: move get_ice_masks helpers to ice_masks
cpaniaguam Nov 20, 2024
8ba5fec
chore: remove unused get_new2 and get_new3 functions from preprocess_…
cpaniaguam Nov 20, 2024
ad9335e
refactor: update preprocess_tiling.jl to process RGB channels and con…
cpaniaguam Nov 20, 2024
d23c2be
test: get_ice_masks and related functions
cpaniaguam Nov 20, 2024
e91942d
fix: update get_ice_labels_mask to use a default factor of 255 and im…
cpaniaguam Nov 20, 2024
233cc3d
test: update assertions in test-get-ice-masks.jl to use @test macro
cpaniaguam Nov 20, 2024
a0c7081
fix: correct typo in log message and update ice mask processing function
cpaniaguam Nov 20, 2024
55a752a
test: update kmeans_segmentation call and adjust expected ice mask sum
cpaniaguam Nov 20, 2024
9ebc728
fix: use k=3 for kmeans seg for tiled workflow
cpaniaguam Nov 20, 2024
b28f0e8
fix: add default k parameter to get_ice_masks function
cpaniaguam Nov 20, 2024
71b61b0
chore: format
cpaniaguam Nov 20, 2024
880c18b
fix: add k parameter for kmeans segmentation in ice masks parameters
cpaniaguam Nov 20, 2024
405aaec
refactor: make coherent groups in preprocess)tiling
cpaniaguam Nov 20, 2024
7890935
fix: update watershed function to return boolean boundary map
cpaniaguam Nov 20, 2024
ce0d4d5
fix: return BitMatrix from get_final function for improved data handling
cpaniaguam Nov 20, 2024
6156447
fix: optimize get_holes function for improved image processing and me…
cpaniaguam Nov 20, 2024
e30a127
fix: update get_segment_mask to use watershed1 for improved segmentation
cpaniaguam Nov 20, 2024
f39b5a4
fix: refactor watershed2 function to remove async tasks
cpaniaguam Nov 20, 2024
74b5c00
test: preprocess_tiling
cpaniaguam Nov 20, 2024
aed5691
Update src/ice_masks.jl
cpaniaguam Nov 25, 2024
a17a50e
docs: update docstring
cpaniaguam Nov 25, 2024
737d139
docs: update rgb2gray
cpaniaguam Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add overloaded to_uint8 function for single numeric input
  • Loading branch information
cpaniaguam committed Nov 19, 2024
commit 3457103a8d541240c961df98cd579a2d53a63442
5 changes: 5 additions & 0 deletions src/histogram_equalization.jl
Original file line number Diff line number Diff line change
@@ -9,6 +9,11 @@ function to_uint8(arr::AbstractMatrix{T}) where {T<:Integer}
return img
end

function to_uint8(num::T) where {T<:Union{AbstractFloat,Int,Signed}}
num = Int(round(num, RoundNearestTiesAway))
return clamp(num, 0, 255)
end

function anisotropic_diffusion_3D(I)
rgbchannels = get_rgb_channels(I)