Skip to main content
edited question
Link
codebpr
  • 3k
  • 1
  • 8
  • 28

How to use manipulate to draw an image pixel by pixel?

Post Reopened by BetterEnglish, Karsten7, dr.blochwave, Sjoerd C. de Vries, rhermans
Post Closed as "Needs details or clarity" by Mike Honeychurch, MarcoB, user9660, Yves Klett, m_goldberg
Tweeted twitter.com/StackMma/status/688199569151152128
Routine clean-up
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

How to use manipulate to draw an image pointpixel by pointpixel

I needwant to draw an image pixel by pixel using manipulateManipulate. myMy code workalmost works but not properly, it erases the old points each time.

image0 = Image[Table[0, {x, 1, 512}, {y, 1, 680}]]

Manipulate[
  ReplacePixelValue[image0, coordList[[i]] -> 1], 
  {i, 1, 
 Length @ Length@coordListcoordList}]

coordListcoordList is athe list of pixelthe pixels that get changed from 0 to 1 in the image.

How to use manipulate to draw image point by point

I need to draw image pixel by pixel using manipulate. my code work but not properly, it erases the old points each time

image0 = Image[Table[0, {x, 1, 512}, {y, 1, 680}]]

Manipulate[
 ReplacePixelValue[image0, coordList[[i]] -> 1], {i, 1, 
   Length@coordList}]

coordList is a list of pixel that get 1 in the image.

How to use manipulate to draw an image pixel by pixel

I want to draw an image pixel by pixel using Manipulate. My code almost works but it erases the old points each time.

image0 = Image[Table[0, {x, 1, 512}, {y, 1, 680}]]

Manipulate[
  ReplacePixelValue[image0, coordList[[i]] -> 1], 
  {i, 1, Length @ coordList}]

coordList is the list of the pixels that get changed from 0 to 1 in the image.

Source Link

How to use manipulate to draw image point by point

I need to draw image pixel by pixel using manipulate. my code work but not properly, it erases the old points each time

image0 = Image[Table[0, {x, 1, 512}, {y, 1, 680}]]

Manipulate[
 ReplacePixelValue[image0, coordList[[i]] -> 1], {i, 1, 
  Length@coordList}]

coordList is a list of pixel that get 1 in the image.