Changeset 30405 for trunk/magic/remove/src/streaksremove.c
- Timestamp:
- Jan 28, 2011, 12:05:15 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r30315 r30405 771 771 } 772 772 } 773 } else {773 } else if (sfiles->inImage->image->type.type == PS_TYPE_F32) { 774 774 float imageValue = sfiles->inImage->image->data.F32[y][x]; 775 775 if (sfiles->recImage && !isExciseValue(imageValue, sfiles->inImage->exciseValue) ) { … … 787 787 } 788 788 } 789 } else { 790 // We could handle F64 but I don't think we ever get them. 791 // Should catch this earlier 792 psError(PS_ERR_IO, true, "unexpected image type %x found", sfiles->inImage->image->type.type ); 793 streaksExit("", PS_EXIT_PROG_ERROR); 789 794 } 790 795 791 796 if (sfiles->outWeight) { 792 if (sfiles->recWeight) {793 sfiles->recWeight->image->data.F32[y][x] = sfiles->inWeight->image->data.F32[y][x];794 }795 797 // Assume that weight images are always a floating point type 796 sfiles->outWeight->image->data.F32[y][x] = NAN; 798 if (sfiles->inWeight->image->type.type == PS_TYPE_F32) { 799 if (sfiles->recWeight) { 800 sfiles->recWeight->image->data.F32[y][x] = sfiles->inWeight->image->data.F32[y][x]; 801 } 802 sfiles->outWeight->image->data.F32[y][x] = NAN; 803 } else if (sfiles->inWeight->image->type.type == PS_TYPE_F64) { 804 if (sfiles->recWeight) { 805 sfiles->recWeight->image->data.F64[y][x] = sfiles->inWeight->image->data.F64[y][x]; 806 } 807 sfiles->outWeight->image->data.F64[y][x] = NAN; 808 } else { 809 // Should catch this earlier 810 psError(PS_ERR_IO, true, "unexpected weight image type %x found", sfiles->inWeight->image->type.type ); 811 streaksExit("", PS_EXIT_PROG_ERROR); 812 } 797 813 } 798 814 if (sfiles->outMask) {
Note:
See TracChangeset
for help on using the changeset viewer.
