Coder Social home page Coder Social logo

fine tuning segmentation step about vistoseg HOT 4 CLOSED

skim245 avatar skim245 commented on June 8, 2024
fine tuning segmentation step

from vistoseg.

Comments (4)

madhavitippani avatar madhavitippani commented on June 8, 2024

Hello skim245,

Can you share your raw image, mask.mat file from VNS function and nuclei.mat from refineVNS function.

from vistoseg.

skim245 avatar skim245 commented on June 8, 2024

Hi @madhavitippani
I've uploaded three files in google drive and below is the link!

https://drive.google.com/drive/folders/1zNLtGC0MujHsqYiEZNXL_2LnHbd51FZT?usp=sharing

from vistoseg.

madhavitippani avatar madhavitippani commented on June 8, 2024

Requested access

from vistoseg.

madhavitippani avatar madhavitippani commented on June 8, 2024

There are a couple of things you need to change in the code for your images.

  1. in the VNS script that is located here ~/VistoSeg/code/VNS.m comment out line 11 and change line 12 as following
    %Img1_smooth = imgaussfilt(Img1,4); %smooth image
    he = imadjust(Img1, [.2 .3 0; .6 .7 1],[]); %adjust contrast in image

because smoothening is not working for your images, and you need contrast adjustment on the raw image itself

  1. in refineVNS script here ~/VistoSeg/code/refineVNS.m add the following line after line 19
    mask_dark_blue = bwareafilt(mask_dark_blue,[5 2000]);
    in this line [5 2000] is the size threshold on segmented nuclei. Meaning nuclei with less than 5-pixel area and greater than 2000-pixel area are dropped from the segmentation.
    With these changes, I was able to get the following results

without any size threshold
Screen Shot 2022-04-07 at 12 41 47 PM

With size threshold [5 2000]
Screen Shot 2022-04-07 at 12 51 06 PM

from vistoseg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.