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