Changeset 16764
- Timestamp:
- 06/07/13 23:26:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosy/main/MStarguider.cc
r12594 r16764 1 1 #undef EXPERT 2 #define FACT 2 3 3 4 #include "MStarguider.h" … … 1643 1644 1644 1645 unsigned short *f = myimg; 1645 byte *i = img; 1646 byte *e = img+768*576; 1647 1648 while (i<e) 1649 *f++ += *i++; 1646 1647 const byte *end = img+768*576; 1650 1648 1651 1649 if (n%fIntRate) 1650 { 1651 while (img<end) 1652 *f++ += *img++; 1652 1653 return false; 1653 1654 f = myimg; 1655 i = img; 1656 e = img+768*576; 1657 1658 while (i<e) 1659 *i++ = (byte)(*f++/fIntRate); 1660 1661 memset(myimg, 0, sizeof(myimg)); 1662 1663 return true; 1654 } 1655 else 1656 { 1657 while (img<end) 1658 { 1659 *img = (*img + *f)/fIntRate; 1660 ++img; 1661 *f++ = 0; 1662 } 1663 1664 return true; 1665 } 1664 1666 } 1665 1667
Note:
See TracChangeset
for help on using the changeset viewer.