Representing a circle with bits

1 view (last 30 days)
tsmewis
tsmewis on 27 Feb 2019
Commented: tsmewis on 27 Feb 2019
I am having trouble with this question about data representation:
You are given the task of finding a representation for a circle in a drawing application. The circle is to be displayed on the screen, and the user can edit the location and the radius of the circle, both of which are expressed in units of pixels.
a) Specify a data representation for the circle, trying to minimize the number of bits required.
Any help would be amazing :)
  2 Comments
Walter Roberson
Walter Roberson on 27 Feb 2019
Are fractional pixels permitted for locations or radius ?
Are negative values permitted for locations? Negative is presumably not permitted for radius.
What is the largest location or radius that needs to be supported?
tsmewis
tsmewis on 27 Feb 2019
I don't think the problem is calling for fractional pixels and it doesn't state the largest radius. Kind of an open-ended question. Probably why it is stumping me.

Sign in to comment.

Answers (0)

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!