Skip to content

Commit

Permalink
Merge pull request #39 from NordicMRspine/fixCompatHelper
Browse files Browse the repository at this point in the history
Accommodate breaking change in Images v0.26
  • Loading branch information
alexjaffray authored Oct 4, 2023
2 parents dc43c2d + af8f8a9 commit ffc3c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DataFrames = "1.6"
DataInterpolations = "4"
Documenter = "0.27, 1"
FileIO = "1"
Images = "0.25"
Images = "0.25, 0.26"
MAT = "0.10"
MRICoilSensitivities = "0.1"
MRIFiles = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/CoilSensMap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function findConnectedComponent!(mask_slice::Array{T,2}) where {T}
# Find and keep only the largest connected component in the image
components = label_components(mask_slice)
measured_area = component_lengths(components)
measured_area = measured_area[2:end] #remove background component
measured_area = measured_area[findfirst(isequal(first(measured_area)), measured_area)+1 : end] #remove background component
blob = findmax(measured_area)[2]
cartes_index_blob = findall(x -> x!=blob, components)
mask_slice[cartes_index_blob] .= 0
Expand Down

0 comments on commit ffc3c71

Please sign in to comment.