-
Notifications
You must be signed in to change notification settings - Fork 597
Pixel Coordinate System
chafey edited this page Mar 23, 2014
·
5 revisions
The Pixel Coordinate System is used when referring to individual pixels in the image and supports subpixel precision. The origin of the coordinate system is such that 0.0,0.0 is the top left corner of the top left pixel in the image and columns,rows would be the bottom right corner of the bottom right pixel in the image. A coordinate of .5,.5 is therefore the center of the top left pixel.
NOTE: This coordinate system matches that specified in the DICOM Grayscale Softcopy Presentation State Graphic Annotation module for graphics drawn using the PIXEL annotation units.
NOTE: Use Math.ceil() to convert from the pixel coordinate system to the integer pixel number (for looking up the pixel value in the pixel data)