Image scale type

  • matrix:将图片显示到定义好的宽度和高度描述的矩形中,不做任何缩放(图形的左上角对齐矩形的左上角)。意味着,如果矩形比图形大,则图片显示在左上角,如果矩形比图形小,则只会显示图形矩形部分的大小。
  • fitXY:将图片不按等比例扩大/缩小到View的大小显示(确保图片会完整显示,并充满View)
  • fitStart:将图片按照等比例进行缩放,并显示在矩形的左上方(确保图片会完整显示,矩形的短边会充满)
  • fitCenter:将图片按照等比例缩放,并显示在矩形的中间(确保图片会完整显示,矩形的短边会充满)。ImageView的默认状态
  • fitEnd:据图片按照等比例缩放,并显示在矩形的右下方(确保图片会完整显示,矩形的短边会充满)
  • fitStart、fitCenter、fitEnd三种缩放的方式都一样,只是显示的位置不同。无论缩小还是放大,都必须要保证,矩形的短边能被充满。
  • center:不做任何缩放操作,将图片按照原来的大小居中显示,超出ImageView大小部分被截断,注意是从两边等分截断。
  • 如果图片大小小于ImageView大小,则居中显示。(图片可能部分显示)
  • centerCrop:将图片按照等比例缩放,并截取缩放后的中间部分显示在ImageView中。(使得图片的高等于View的高,使得图片宽等于或大于View的宽)(图片可能部分显示)
  • centerInside:将图片大小大于ImageView的图片进行等比例缩小,直到整幅图能够居中显示在ImageView中,小于ImageView的图片不变,直接居中显示。(图片完整显示)
  • centerInside和fitCenter最主要的区别是,当ImageView大小大于图片大小时候,centerInside直接显示图片原大小,而fitCenter,则会放大图片,使得图片能够充满矩形的短边。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Blind image quality assessment (BIQA) aims to predict perceptual image quality scores without access to reference images. State-of-the-art BIQA methods typically require subjects to score a large number of images to train a robust model. However, the acquisition of image quality scores has several limitations: 1) scores are not precise, because subjects are usually uncertain about which score most precisely represents the perceptual quality of a given image; 2) subjective judgments of quality may be biased by image content; 3) the quality scales between different distortion categories are inconsistent, because images corrupted by different types of distortion are evaluated independently in subjective experiments; and 4) it is challenging to obtain a large scale database, or to extend existing databases, because of the inconvenience of collecting sufficient images associated with different kinds of distortion that have diverse levels of degradation, training the subjects, conducting subjective experiments, and realigning human quality evaluations. To combat these limitations, this paper explores and exploits preference image pairs (PIPs) such as “the quality of image Ia is better than that of image Ib” for training a robust BIQA model. The preference label, representing the relative quality of two images, is generally precise and consistent, and is not sensitive to image content, distortion type, or subject identity; such PIPs can be generated at very low cost. The proposed BIQA method is one of learning to rank. We first formulate the problem of learning the mapping from the image features to the preference label as one of classification. In particular, we investigate the utilization of a multiple kernel learning algorithm based on group lasso (MKLGL) to provide a solution. A simple but effective strategy to estimate perceptual image quality scores is then presented. Experiments show that the proposed BIQA method is highly effective and achieves comparable performance

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值