Volumetric Image Visualization Alexandre Xavier Falc ao LIDS - - - PowerPoint PPT Presentation

volumetric image visualization
SMART_READER_LITE
LIVE PREVIEW

Volumetric Image Visualization Alexandre Xavier Falc ao LIDS - - - PowerPoint PPT Presentation

Volumetric Image Visualization Alexandre Xavier Falc ao LIDS - Institute of Computing - UNICAMP afalcao@ic.unicamp.br Alexandre Xavier Falc ao MO815 - Volumetric Image Visualization Object iso-surfaces and curvilinear cuts A discrete


slide-1
SLIDE 1

Volumetric Image Visualization

Alexandre Xavier Falc˜ ao

LIDS - Institute of Computing - UNICAMP

afalcao@ic.unicamp.br

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-2
SLIDE 2

Object iso-surfaces and curvilinear cuts

A discrete iso-surface is a set of object’s points that are at the same distance of the object’s boundary.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-3
SLIDE 3

Object iso-surfaces and curvilinear cuts

A discrete iso-surface is a set of object’s points that are at the same distance of the object’s boundary. The Euclidean distance transform (EDT) can be explored to

  • btain iso-surfaces of a 3D object.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-4
SLIDE 4

Object iso-surfaces and curvilinear cuts

A discrete iso-surface is a set of object’s points that are at the same distance of the object’s boundary. The Euclidean distance transform (EDT) can be explored to

  • btain iso-surfaces of a 3D object.

One can visualize the image texture on iso-surfaces of a 3D

  • bject and those renditions are called curvilinear cuts

(reformatting) [4].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-5
SLIDE 5

Object iso-surfaces and curvilinear cuts

A discrete iso-surface is a set of object’s points that are at the same distance of the object’s boundary. The Euclidean distance transform (EDT) can be explored to

  • btain iso-surfaces of a 3D object.

One can visualize the image texture on iso-surfaces of a 3D

  • bject and those renditions are called curvilinear cuts

(reformatting) [4]. This lecture covers the sequence of operations to obtain curvilinear cuts from a 3D object.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-6
SLIDE 6

Object iso-surfaces and curvilinear cuts

The EDT can be implemented by the IFT algorithm [2] and variants are used for fast morphological operations [1]. The curvilinear cuts are actually obtained from the surface of the

  • bject’s envelop.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-7
SLIDE 7

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-8
SLIDE 8

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-9
SLIDE 9

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-10
SLIDE 10

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-11
SLIDE 11

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-12
SLIDE 12

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-13
SLIDE 13

Object iso-surfaces and curvilinear cuts

The visualization can be useful to guide brain resections in the treatment of Epilepsy patients with focal cortical dysplasia [3].

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-14
SLIDE 14

Euclidean distance transform

Let ˆ B = (DI, B) be a binary image of a 3D object (with no holes), such that B(p) = 1 inside the object and B(p) = 0

  • utside it.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-15
SLIDE 15

Euclidean distance transform

Let ˆ B = (DI, B) be a binary image of a 3D object (with no holes), such that B(p) = 1 inside the object and B(p) = 0

  • utside it.

Let S ⊂ DI be a set of foreground seeds at the internal boundary of the 3D object.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-16
SLIDE 16

Euclidean distance transform

Let ˆ B = (DI, B) be a binary image of a 3D object (with no holes), such that B(p) = 1 inside the object and B(p) = 0

  • utside it.

Let S ⊂ DI be a set of foreground seeds at the internal boundary of the 3D object. S : {p ∈ DI | B(p) = 1, ∃q ∈ A1(p), B(q) = 0}, Aρ(p) : {q ∈ DI | q − p ≤ ρ}.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-17
SLIDE 17

Euclidean distance transform

Let ˆ B = (DI, B) be a binary image of a 3D object (with no holes), such that B(p) = 1 inside the object and B(p) = 0

  • utside it.

Let S ⊂ DI be a set of foreground seeds at the internal boundary of the 3D object. S : {p ∈ DI | B(p) = 1, ∃q ∈ A1(p), B(q) = 0}, Aρ(p) : {q ∈ DI | q − p ≤ ρ}. The IFT algorithm can compute minimum-cost paths from S such that the cost map C assigns to each voxel p ∈ DI, the closest distance C(p) between p and S.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-18
SLIDE 18

Euclidean distance transform

This requires the image graph (DI, A√

3) and path-cost function f ,

f (q) = if q ∈ S, +∞

  • therwise.

f (πp · p, q) = q − R(p)2, where R(p) ∈ S is the root of the optimum path πp — i.e., the closest voxel in the object’s boundary.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-19
SLIDE 19

Euclidean distance transform

This requires the image graph (DI, A√

3) and path-cost function f ,

f (q) = if q ∈ S, +∞

  • therwise.

f (πp · p, q) = q − R(p)2, where R(p) ∈ S is the root of the optimum path πp — i.e., the closest voxel in the object’s boundary. However, morphological closing is needed for the cuts to follow the curvature of the brain.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-20
SLIDE 20

Fast morphological operations in binary sets

The EDT algorithm can be easily modified to propagate either values 1 outside the object (dilation) or values 0 inside it (erosion) up to a given radius ρ ≥ 1.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-21
SLIDE 21

Fast morphological operations in binary sets

The EDT algorithm can be easily modified to propagate either values 1 outside the object (dilation) or values 0 inside it (erosion) up to a given radius ρ ≥ 1. Fast morphological operators can be decomposed into alternate sequences of dilations ΨD and erosions ΨE.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-22
SLIDE 22

Fast morphological operations in binary sets

The EDT algorithm can be easily modified to propagate either values 1 outside the object (dilation) or values 0 inside it (erosion) up to a given radius ρ ≥ 1. Fast morphological operators can be decomposed into alternate sequences of dilations ΨD and erosions ΨE. From the priority queue Q,

background seeds for a subsequent erosion can be obtained during dilation and foreground seeds for a subsequent dilation can be obtained during erosion.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-23
SLIDE 23

Examples of alternate sequences

ΨC( ˆ B, Aρ) = ΨE(ΨD( ˆ B, Aρ), Aρ). ΨCO( ˆ B, Aρ) = ΨD(ΨE(ΨE(ΨD( ˆ B, Aρ), Aρ), Aρ), Aρ) = ΨD(ΨE(ΨD( ˆ B, Aρ), A2ρ), Aρ). ΨCO(ΨCO( ˆ B, Aρ), A2ρ) = ΨD(ΨE(ΨD(ΨE(ΨD( ˆ B, Aρ), A2ρ), A3ρ), A4ρ), A2ρ), where ΨC is a closing and ΨCO is a closing followed by an opening.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-24
SLIDE 24

The IFT-based algorithms

For the IFT-based algorithms, let ˆ B = (DI, B) be the binary image of a presegmented object and ˆ B′ = (DI, B′) may be the resulting dilation/erosion. Set S may represent foreground seeds for dilation or background seeds for erosion. C and R are path-cost and root maps. Q is a priority queue, A√

3 is the adjacency relation for path

extension, ρ is a dilation/erosion radius, and tmp is a variable.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-25
SLIDE 25

The EDT algorithm

Input: ˆ B = (DI, B) and S with foreground seeds. Output: ˆ C = (DI, C), initially with zeros.

1 For each p ∈ DI, if B(p) = 1 then C(p) ← +∞. 2 While S = ∅ do 3

Remove p from S, C(p) ← 0, R(p) ← p, and insert p in Q.

4 While Q = ∅ do 5

Remove p = arg minq∈Q{C(q)} from Q.

6

For each q ∈ A√

3(p) | C(q) > C(p) and B(q) = 1 do

7

tmp ← q − R(p)2.

8

If tmp < C(q) then

9

If q ∈ Q then remove q from Q.

10

C(q) ← tmp, R(q) ← R(p), and insert q in Q.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-26
SLIDE 26

Fast dilation

Input: ˆ B = (DI, B), S, and ρ. Output: ˆ B′ = (DI, B′) and seeds S for erosion.

1 For each p ∈ DI, C(p) ← +∞ and B′(p) ← B(p). 2 While S = ∅ do 3

Remove p from S, C(p) ← 0, R(p) ← p, and insert p in Q.

4 While Q = ∅ do 5

Remove p = arg minq∈Q{C(q)} from Q.

6

If C(p) ≤ ρ2, then B′(p) ← 1.

7

For each q ∈ A√

3(p) | C(q) > C(p) and B(q) = 0 do

8

tmp ← q − R(p)2.

9

If tmp < C(q) then

10

If q ∈ Q then remove q from Q.

11

C(q) ← tmp, R(q) ← R(p), and insert q in Q.

12

Else, S ← S ∪ {p}.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-27
SLIDE 27

Fast erosion

Input: ˆ B = (DI, B), S, and ρ. Output: ˆ B′ = (DI, B′) and seeds S for dilation.

1 For each p ∈ DI, C(p) ← +∞ and B′(p) ← B(p). 2 While S = ∅ do 3

Remove p from S, C(p) ← 0, R(p) ← p, and insert p in Q.

4 While Q = ∅ do 5

Remove p = arg minq∈Q{C(q)} from Q.

6

If C(p) ≤ ρ2, then B′(p) ← 0.

7

For each q ∈ A√

3(p) | C(q) > C(p) and B(q) = 1 do

8

tmp ← q − R(p)2.

9

If tmp < C(q) then

10

If q ∈ Q then remove q from Q.

11

C(q) ← tmp, R(q) ← R(p), and insert q in Q.

12

Else, S ← S ∪ {p}.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-28
SLIDE 28

Implementation issues

The external boundary S of an object is defined as S : {p ∈ DI | B(p) = 0, ∃q ∈ A1(p), B(q) = 1}.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-29
SLIDE 29

Implementation issues

The external boundary S of an object is defined as S : {p ∈ DI | B(p) = 0, ∃q ∈ A1(p), B(q) = 1}. A zero padding of size ρ is required in order to avoid errors when dilating objects that are closer than ρ to the image’s border.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-30
SLIDE 30

Implementation issues

The external boundary S of an object is defined as S : {p ∈ DI | B(p) = 0, ∃q ∈ A1(p), B(q) = 1}. A zero padding of size ρ is required in order to avoid errors when dilating objects that are closer than ρ to the image’s border. After 3D object segmentation, an envelop can be created by computing dilation followed by erosion (morphological closing) with radius ρ = 20.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-31
SLIDE 31

Implementation issues

The external boundary S of an object is defined as S : {p ∈ DI | B(p) = 0, ∃q ∈ A1(p), B(q) = 1}. A zero padding of size ρ is required in order to avoid errors when dilating objects that are closer than ρ to the image’s border. After 3D object segmentation, an envelop can be created by computing dilation followed by erosion (morphological closing) with radius ρ = 20. The EDT is then computed for the envelop and curvilinear cuts require the ray casting algorithm up to a desired iso-surface.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-32
SLIDE 32

Curvilinear cuts

We will learn now how to obtain curvilinear cuts from an input scene ˆ I = (DI, I) and the envelop ˆ E = (DI, E) of a pre-segmented

  • bject in ˆ

I. Let ρ be the depth of the cut with respect to the envelop’s surface.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-33
SLIDE 33

Curvilinear cuts

Recall from maximum intensity projection that we must use φ−1, being φ−1

r

= Rx(−α)Ry(−β), φ−1 = T(xc, yc, zc)φ−1

r T(−d

2 , −d 2 , −d 2 )

  • n pixels p = (up, vp, −d

2 ) of the viewing plane to map them on

points p0 for ray casting in the direction n′ = φ−1

r (n).

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-34
SLIDE 34

Curvilinear cuts

Recall that, for each ray p′ = p0 + λn′, the intersection points p1 and pn with the face planes of the scene must be found by solving the equation p0 + λn′ − f .c, f .n = for the six faces f ∈ F of the scene, where f .n and f .c are their unit normal vector and center point, respectively.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-35
SLIDE 35

Curvilinear cuts

Now, the DDA algorithm in 3D must be modified to find a point p′

0 at depth ρ in the EDT ˆ

C = (DI, C) from the surface

  • f the envelop ˆ

E = (DI, E). The algorithm for curvilinear cut is similar to the maximum intensity projection algorithm, except that the DDA function results a point p′

0 whose intensity I(p′ 0) must be found by

interpolation.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-36
SLIDE 36

Algorithm to find an iso-surface point p′

Input : ˆ C = (DI, C), ρ, and P = {p1, pn}. Output: Point p′

0 or nil for no intersection.

1 If p1 = pn then set n ← 1. 2 Else 3 Set Dx ← xpn − xp1, Dy ← ypn − yp1, Dz ← zpn − zp1. 4 If |Dx| ≥ |Dy| and |Dx| ≥ |Dz| then 5 Set n ← |Dx| + 1, dx ← sign(Dx), dy ← dxDy

Dx , and

dz ← dxDz

Dx .

6 Else 7 If |Dy| ≥ |Dx| and |Dy| ≥ |Dz| then

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-37
SLIDE 37

Algorithm to find an iso-surface point p′

8 Set n ← |Dy| + 1, dy ← sign(Dy), dx ← dyDx

Dy , and

dz ← dyDz

Dy .

9 Else 10 Set n ← |Dz| + 1, dz ← sign(Dz), dx ← dzDx

Dz , and

dy ← dzDy

Dz .

11 Set p′ = (⌈xp′⌉, ⌈yp′⌉, ⌈zp′⌉) ← (xp1, yp1, zp1). 12 If ρ − 0.5 <

  • C(p′) < ρ + 0.5, then return p′

0 ← (x′ p, y′ p, z′ p).

13 For each k = 2 to n, do 14 p′ = (⌈xp′⌉, ⌈yp′⌉, ⌈zp′⌉) ← (xp′, yp′, zp′) + (dx, dy, dz) 15 If ρ − 0.5 <

  • C(p′) < ρ + 0.5, then return

p′

0 ← (x′ p, y′ p, z′ p).

16 return p′

0 ← nil.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-38
SLIDE 38

Algorithm for curvilinear cut

Input : ˆ I = (DI, I), ˆ C = (DI, C), α, β, and ρ. Output: Curvilinear cut image ˆ J = (DJ, J). 1 n′ ← φ−1

r (n), where n = (0, 0, 1, 0).

2 For each p ∈ DJ do 3 p0 ← φ−1(p). 4 Find P = {p1, pn} by solving p0 + λn′ − f .c, f .n = 0 for each face f ∈ F of the scene, whenever they exist. 5 If P = ∅ then 6 p′

0 ← FindIsosurfacePoint( ˆ

C, ρ, P) 7 If p′

0 = nil then J(p) ← I(p′ 0) using interpolation.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-39
SLIDE 39

[1] A.M. Sousa, S.B. Martins, F. Reis, E. Bagatin, K. Irion, and A.X. Falc˜

  • ao. ALTIS: A Fast and Automatic Lung and Trachea

CT-Image Segmentation Method. Medical Physics, doi 10.1002/mp.13773, 46(11), pp. 4970–4982, Nov 2019 [2]

  • A. X. Falc˜

ao, J. Stolfi and R. de Alencar Lotufo. The image foresting transform: theory, algorithms, and applications. IEEE Transactions on Pattern Analysis and Machine Intelligence, 10.1109/TPAMI.2004.1261076, 26(1), pp. 19-29, 2004. [3] F.P.G. Bergo , A.X. Falc˜ ao, C.L. Yasuda and F. Cendes. FCD Segmentation using Texture Asymmetry of MR-T1 Images of the Brain, The Fifth IEEE Intl. Symp. on Biomedical Imaging: From Nano to Macro (ISBI), Paris, France, ISBN 978-1-42442003-2, May 14th–17th, pp. 424–427, 2008. [4] F.P.G. Bergo and A.X. Falc˜

  • ao. Fast and Automatic

Curvilinear Reformatting of MR Images of the Brain for Diagnosis of Dysplastic Lesions. 3rd IEEE Intl. Symp. on Biomedical Imaging: From Nano to Macro (ISBI). doi:

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization

slide-40
SLIDE 40

10.1109/ISBI.2006.1624959, Arlington, VA, USA, ISSN 1530-1834, ISBN 0-7803-9577-8, pp. 486–489, April 2006.

Alexandre Xavier Falc˜ ao MO815 - Volumetric Image Visualization