"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["4851"],{45357:function(n,e,s){s.r(e);var r=s(85893),i=s(50065);function o(n){let e=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p"},(0,i.ah)(),n.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(e.h1,{id:"bgr2yuv",children:[(0,r.jsx)(e.a,{className:"header-anchor","aria-hidden":"true",href:"#bgr2yuv",children:"#"}),"bgr2yuv"]}),"\n",(0,r.jsx)(e.pre,{className:"code",children:(0,r.jsx)(e.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,r.jsxs)(e.code,{className:"language-python",meta:"",children:[(0,r.jsxs)(e.span,{className:"line line-number",children:[(0,r.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"horizon_plugin_pytorch"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"bgr2yuv "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"input"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:": Tensor, swing: str "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:" "}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'studio'"}),(0,r.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n"]})})}),"\n",(0,r.jsx)(e.p,{children:"Convert color space."}),"\n",(0,r.jsx)(e.p,{children:"Convert images from BGR format to YUV444 BT.601"}),"\n",(0,r.jsx)(e.p,{children:"Parameters:"}),"\n",(0,r.jsx)(e.p,{children:"input (Tensor) \u2013 input image in BGR format, ranging 0 to 255"}),"\n",(0,r.jsx)(e.p,{children:"swing (str) \u2013 \u201Cstudio\u201D for YUV studio swing (Y: 16 to 235, U, V: 16 to 240). \u201Cfull\u201D for YUV full swing (Y, U, V: 0 to 255). default is \u201Cstudio\u201D"}),"\n",(0,r.jsx)(e.p,{children:"Returns: YUV image"}),"\n",(0,r.jsx)(e.p,{children:"Return type: Tensor"})]})}function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,i.ah)(),n.components);return e?(0,r.jsx)(e,Object.assign({},n,{children:(0,r.jsx)(o,n)})):o(n)}e.default=t,t.__RSPRESS_PAGE_META={},t.__RSPRESS_PAGE_META["latest%2Fen%2Fguide%2Fplugin%2Fplugin_api_reference%2Fhorizon_operator%2Fhorizon_plugin_pytorch_bgr2yuv.md"]={toc:[],title:"bgr2yuv",frontmatter:{}}}}]);