# ITK.js

**URL:** <https://discourse.itk.org/t/itk-js/622>\
**Category:** Uncategorized\
**Created:** [January 26, 2018, 1:04pm UTC](https://discourse.itk.org/t/itk-js/622 "2018-01-26T13:04:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [May 19, 2021, 1:29pm UTC](https://discourse.itk.org/t/itk-js/622/4 "2021-05-19T13:29:32Z")

</div>

Hi @sedghi ,

> [@sedghi](#):
>
> Does ITK.js provides all the image filters?

Yes, ITK.js provides access to all ITK filters!

> [@sedghi](#):
>
> I’m interested in performing Otsu thresholding on a vtkImageData that I have. What is the best library for me to perform this calculation?

If the data is in a file [itk.js can be used to read the file](https://insightsoftwareconsortium.github.io/itk-js/api/browser_io.html).

If the data is in a vtk.js vtkImageData, it can be converted to an itk.js Image with the [vtk.js `convertVtkToItkImage`](https://kitware.github.io/vtk-js/api/Common_DataModel_ITKHelper.html).

For Otsu thresholding download the [Threshold an Imaging Using Otsu](https://itk.org/ITKExamples/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/Documentation.html) example, and build it with ITK.js:

```auto
curl -O https://itk.org/ITKExamples/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/ThresholdAnImageUsingOtsu.zip
unzip ThresholdAnImageUsingOtsu.zip
cd ThresholdAnImageUsingOtsu

npm install --global itk
itk-js build .

```

Then run the pipeline in the browser using the [`runPipelineBrowser`](https://insightsoftwareconsortium.github.io/itk-js/api/browser_pipelines.html) API. More information on how to provide access to the pipeline can be found in the [examples](https://insightsoftwareconsortium.github.io/itk-js/examples/).

---

_[View the full topic](https://discourse.itk.org/t/itk-js/622)._
