"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["6948"],{98969:function(e,n,r){r.r(n);var s=r(85893),i=r(50065);function a(e){let n=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p"},(0,i.ah)(),e.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.h1,{id:"bgr2rgb",children:[(0,s.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#bgr2rgb",children:"#"}),"bgr2rgb"]}),"\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:"bgr2rgb "}),(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)"})]}),"\n"]})})}),"\n",(0,s.jsx)(n.p,{children:"Convert color space."}),"\n",(0,s.jsx)(n.p,{children:"Convert images from BGR format to RGB"}),"\n",(0,s.jsx)(n.p,{children:"Parameters: input (Tensor) \u2013 image in BGR format with shape [N, 3, H, W]"}),"\n",(0,s.jsx)(n.p,{children:"Returns: image in RGB format with shape [N, 3, H, W]"}),"\n",(0,s.jsx)(n.p,{children:"Return type: Tensor"})]})}function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.ah)(),e.components);return n?(0,s.jsx)(n,Object.assign({},e,{children:(0,s.jsx)(a,e)})):a(e)}n.default=t,t.__RSPRESS_PAGE_META={},t.__RSPRESS_PAGE_META["latest%2Fen%2Fguide%2Fplugin%2Fplugin_api_reference%2Fhorizon_operator%2Fhorizon_plugin_pytorch_bgr2rgb.md"]={toc:[],title:"bgr2rgb",frontmatter:{}}}}]);