none
Otsu' Method RRS feed

  • Question

  • Hi,

    I'm Bella. I want to ask how to thresh image using Otsu' Method. I've done using Matlab. But, I don't know how to create code using vb.net.  If anyone has a link or any info, please share here. 

    Thanks.

    Regards,

    Bella

    Monday, August 14, 2017 8:24 AM

Answers

  • Bella,

    I assume you are referencing to this page.

    https://en.wikipedia.org/wiki/Otsu%27s_method

    If you simply search using your favorite browser and search engine for a "convert javascript to vbscript online" then you can translate the code from the JavaScript part to VBScript. If you put that in Visual Studio at a VB desktop format you want, then it is mostly only making some changes. 


    Success
    Cor

    • Marked as answer by Bella67 Tuesday, August 15, 2017 7:35 AM
    Monday, August 14, 2017 8:44 AM
  • Hi Bella67,

    According to your description, you want to use Otsu' method to thresh image by vb.net, I find one sample that may helpful to you.

    https://www.programmingalgorithms.com/algorithm/otsu-threshold?lang=VB.Net

    Here is an sample about explaining the basics of the famous Otsu's automatic thresholding method with an implementation in C#, but you can use any converter tool to convert into vb.net.

    https://www.codeproject.com/Articles/38319/Famous-Otsu-Thresholding-in-C

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Bella67 Tuesday, August 15, 2017 7:35 AM
    Tuesday, August 15, 2017 2:23 AM
    Moderator

All replies

  • Bella,

    I assume you are referencing to this page.

    https://en.wikipedia.org/wiki/Otsu%27s_method

    If you simply search using your favorite browser and search engine for a "convert javascript to vbscript online" then you can translate the code from the JavaScript part to VBScript. If you put that in Visual Studio at a VB desktop format you want, then it is mostly only making some changes. 


    Success
    Cor

    • Marked as answer by Bella67 Tuesday, August 15, 2017 7:35 AM
    Monday, August 14, 2017 8:44 AM
  • Hi Bella67,

    According to your description, you want to use Otsu' method to thresh image by vb.net, I find one sample that may helpful to you.

    https://www.programmingalgorithms.com/algorithm/otsu-threshold?lang=VB.Net

    Here is an sample about explaining the basics of the famous Otsu's automatic thresholding method with an implementation in C#, but you can use any converter tool to convert into vb.net.

    https://www.codeproject.com/Articles/38319/Famous-Otsu-Thresholding-in-C

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Bella67 Tuesday, August 15, 2017 7:35 AM
    Tuesday, August 15, 2017 2:23 AM
    Moderator