Construct a new Image instance.
Image coding as ImageBitMap with RGB color space.
Image target color space for tensor computing.
a promise that resolves when inner tensor could be export as an image.
Whether the image is ready to operate.
The color space of current Image instance.
The color space of current Image instance.
Inner tf.Tensor instance of current Image instance.
Inner tf.Tensor instance of current Image instance.
Memory used by tf.Tensor in the Image instance can not be free automatically,
call this if the instance won't be used;
Wait until the image if ready to operate.
```ts import { Image } from 'waifu2x-tfjs';
async function example() { const img = new Image(anImageBitMap'); if (!img.initialized) await img.waitForReader(); } example(); ```
RGB Image to be converted to YCbCr with shape (H, W, 3).
YCbCr version of the image with shape (H, W, 3).
YCbCr Image to be converted to RGB with shape (H, W, 3).
RGB version of the image with shape (H, W, 3).
Generated using TypeDoc
This class is used to import image into
tf.Tensor, exporttf.Tensoras an image and convert image tensor color space.