Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L lab03
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs2-19wi
  • lab03
  • Issues
  • #1

Something went wrong while setting issue due date.
Closed
Open
Created 6 years ago by Ethan Ordentlich@eordentlDeveloper
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Spec comments

Closed

Spec comments

Goals and Outcomes

  • Bit shifts and bitwise operators are no longer in the lab

Image Rotation

  • This is a weird way of saying that they should reflect along the diagonal. I worked this out by looking at the tests, but this is a reflection, not a rotation (just semantics).

ARGB Values as Bits

  • "Because computers ultimately" --> "Because computers are ultimately"

Putting it Together

  • Mention that each char should be stored with least significant bit coming first in the standard iteration of a 2D array.

Time: ~30 min, but I spent a while forgetting that fixLowestBitOfR returned a new pixel instead of modifying it.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information

Linked issues
0


  • Adam Blank
    Adam Blank @blank · 6 years ago
    Owner

    err...it's definitely a rotation; i'm not sure what you're talking about.

    all the others are totally valid. @ddimino can you fix those?

  • Ethan Ordentlich
    Ethan Ordentlich @eordentl · 6 years ago
    Author Developer

    Re: rotation - to be more clear, I'll attach what I mean.

    This is the original image that is to be transformed.

    MonaLisa

    This is the desired output image.

    MonaLisa.rotated

    If we were to rotate the original image 90 degrees counterclockwise, it would appear like this.

    MonaLisa

    Actually, I was incorrect to call it a reflection. The transformation we want - swapping the row and column coordinates - is called a transpose.

  • Adam Blank
    Adam Blank @blank · 6 years ago
    Owner

    yeah, that's a bug then; it's supposed to be a rotation. @ddimino can we fix this please?

  • Adam Blank
    Adam Blank @blank · 6 years ago
    Owner

    actually, on second thought--transpose is easier-- @ddimino let's fix all the names and spec to say transpose

  • Adam Blank
    Adam Blank @blank · 6 years ago
    Owner

    these should all be fixed now

  • Adam Blank @blank closed 6 years ago

    closed

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
None
Assign to
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Due date
None
None
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Confidentiality
Not confidential
Not confidential

You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

Lock issue
Unlocked
0
0 participants
Reference:

Menu

Projects Groups Snippets
Help