summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2023-08-19 14:51:48 -0400
committerHubert Figuière <hub@figuiere.net>2023-08-19 23:02:59 -0400
commit1d08c81a4354042bee737666e00d41b80b9a1905 (patch)
treef8f507a10b3c377ee10f7b47599950c3d585754b
parented85a557e6ddb68270e5059b470b1c8d748bcf71 (diff)
bitmap: remove ImageBuffer::into_f64()
-rw-r--r--src/bitmap.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/bitmap.rs b/src/bitmap.rs
index ea74dae..08294f1 100644
--- a/src/bitmap.rs
+++ b/src/bitmap.rs
@@ -78,21 +78,6 @@ impl ImageBuffer<f64> {
}
}
-impl ImageBuffer<u16> {
- pub(crate) fn into_f64(self) -> ImageBuffer<f64> {
- ImageBuffer::<f64>::with_data(
- self.data
- .iter()
- .map(|v| *v as f64 / u16::MAX as f64)
- .collect(),
- self.width,
- self.height,
- 16,
- self.cc,
- )
- }
-}
-
/// Trait for bitmap objects.
pub trait Bitmap {
fn data_type(&self) -> DataType;