2
$\begingroup$

I would like to use DynamicImage within Manipulate, but have been unable to get the contents of DynamicImage to update. This basic example demonstrated the problem:

Manipulate[Image[RandomReal[{0, i}, {100, 100}]], {i, 0, 1}]

Updates upon adjusting the control slider, whereas

Manipulate[DynamicImage@Image[RandomReal[{0, i}, {100, 100}]], {i, 0, 1}]

does not.

I would much appreciate any help - Thank you.

$\endgroup$

1 Answer 1

1
$\begingroup$

Try

Manipulate[With[{i = i}, 
  DynamicImage@Image[RandomReal[{0, i}, {100, 100}]]], {i, 0, 1}]

or

Manipulate[DynamicImage @ Image[RandomReal[{0, #}, {100, 100}]] & @ i, {i, 0, 1}]

or

Manipulate[DynamicImage@Image[RandomReal[{0, j}, {100, 100}]] /. j -> i, {i, 0, 1}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.