Coder Social home page Coder Social logo

Comments (8)

tyarkoni avatar tyarkoni commented on July 18, 2024

You can now specify 'positiveThreshold' and 'negativeThreshold' properties in Image objects.

from nsviewer.

mwaskom avatar mwaskom commented on July 18, 2024

Excellent! It works nicely, except for one thing. Is there a way to force the text input linked to the slider, e.g.

viewer.addSlider('pos-threshold', '.slider#pos-threshold', 'horizontal',  0, 1, 0, 0.01, null, '#pos-threshold-text');
<input class="slider-text" id="pos-threshold-text" />
<div class="slider layer_settings" id='pos-threshold'></div>

to update when the image loads?

from nsviewer.

tyarkoni avatar tyarkoni commented on July 18, 2024

I think I just fixed this in my last push. Try and see. If it still doesn't work, let me know. As a workaround, you can always do Viewer.selectLayer(0), which should activate the 0th layer and update the view accordingly.

from nsviewer.

mwaskom avatar mwaskom commented on July 18, 2024

hmm, it doesn't seem to work for me with the new nsviewer pull or with your
workaround (calling viewer.selectLayer(0) right after
viewer.loadImages(images) )

maybe I have the text box declared wrong? if I just nudge the slider, it
displays the right value.

from nsviewer.

mwaskom avatar mwaskom commented on July 18, 2024

in case it's useful for debugging, i'm serving my app here for the time
being: http://stanford.io/17mMW8t

On Thu, Aug 1, 2013 at 1:38 PM, Michael Waskom
[email protected]:

hmm, it doesn't seem to work for me with the new nsviewer pull or with
your workaround (calling viewer.selectLayer(0) right after
viewer.loadImages(images) )

maybe I have the text box declared wrong? if I just nudge the slider, it
displays the right value.

from nsviewer.

tyarkoni avatar tyarkoni commented on July 18, 2024

Should work now.

from nsviewer.

mwaskom avatar mwaskom commented on July 18, 2024

still seems broken on my end :/. am i missing something?

On Thu, Aug 1, 2013 at 2:05 PM, Tal Yarkoni [email protected]:

Should work now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-21969601
.

from nsviewer.

mwaskom avatar mwaskom commented on July 18, 2024

cool, seems to work now. maybe it was a caching issue? anyway, thanks!

On Thu, Aug 1, 2013 at 2:12 PM, Michael Waskom
[email protected]:

still seems broken on my end :/. am i missing something?

On Thu, Aug 1, 2013 at 2:05 PM, Tal Yarkoni [email protected]:

Should work now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-21969601
.

from nsviewer.

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.