#588 closed defect (fixed)
psImageSmooth only works for psF64, needs at least psF32
| Reported by: | eugene | Owned by: | eugene |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | imageops | Version: | 0.8.0 |
| Severity: | normal | Keywords: | |
| Cc: | robert.desonia@… |
Description
the required data types for psImageSmooth are not specified in the SDRS. It was
implemented with only psF64. We need at least psF32. Since images which would
be smoothed with this function are large, and thus unlikely to be psF64, let's
make this function valid for psF32 and drop psF64 for now.
Change History (2)
comment:1 by , 21 years ago
| Owner: | changed from to |
|---|
comment:2 by , 21 years ago
| Cc: | added |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Sounds good --- changed:
bool psImageSmooth(psImage *image, double sigma, double Nsigma);
Note:
See TracTickets
for help on using tickets.

Macroized the routine to support both F32 and F64.
While doing that, I had to add a check of type. If it is not F32 or F64, I print an error message, but the
function doesn't return a value. It probably should be define to return a bool to mark success.
What do you think?
-rdd