Vtk-js: How to preserve lungs and eliminate the rest

Created on 7 May 2019  路  2Comments  路  Source: Kitware/vtk-js

I am looking for a way to preserve the lungs and remove the rest for the pictures below. I can use a guassian filter to make it look like the picture below. I do not know how to look at lungs alone.

I know I can control the guassian filte using PiecewiseFunction and ColorTransferFunction.

Can you help me with this?

image

Most helpful comment

A quick and dirty way, without doing any sort of segmentation, would be to try running your dataset through an image crop filter (example shown here). That may or may not get rid of everything you don't want though, but it should be an easy start

All 2 comments

A quick and dirty way, without doing any sort of segmentation, would be to try running your dataset through an image crop filter (example shown here). That may or may not get rid of everything you don't want though, but it should be an easy start

@llangholz89

Thanks for the answer. I got a good idea.

Can I give transparency to only one part of the yellow mark? (I want to make the lung more visible)

There is a way I already know.

  1. I make a dicom image as a binary file that consists of 1 (desired part) and 0 (not necessary part).

  2. Give transparency and color value using piecewise function and colortransferfunction.

Is this the only way?

I want to be like this:

image

Thank you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

truongleit picture truongleit  路  6Comments

aminechir picture aminechir  路  3Comments

doczoidberg picture doczoidberg  路  5Comments

mix3d picture mix3d  路  7Comments

rjsgml5698 picture rjsgml5698  路  4Comments