codecamp

TensorFlow函数:tf.image.sobel_edges

tf.image.sobel_edges函数

tf.image.sobel_edges(image)

定义在:tensorflow/python/ops/image_ops_impl.py

返回保存Sobel边缘映射的张量.

参数:

  • image:带形状的图像张量[batch_size,H,W,d],并且类型为float32或float64,图像必须是2×2或更大.

返回:

张量控制每个通道的边缘映射.返回具有形状[batch_size, h, w, d, 2]的张量,并且在最后两个维度维持[[dy[0], dx[0]], [dy[1], dx[1]], ..., [dy[d-1], dx[d-1]]],

使用Sobel过滤器计算.

TensorFlow函数:tf.image.sample_distorted_bounding_box
TensorFlow函数:tf.image.ssim
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }