The simplest would be to wrap cv2 implementation in a Theano Op: http://deeplearning.net/software/theano/extending/
If you have questions, don't hesitate. I think it would be great to have this in Theano. Fred On Mon, Aug 29, 2016 at 10:24 PM, <[email protected]> wrote: > OK,So sad ... ,how can I implement one? > > 在 2016年8月30日星期二 UTC+8上午6:09:23,Pascal Lamblin写道: >> >> Theano has a couple of functions to do subsampling (pooling) or linear >> interpolation, but only by an integer factor, not something as generic >> as cv2 can provide. >> >> On Mon, Aug 29, 2016, [email protected] wrote: >> > I want to resize images in the scan function,the resize procedure is >> done >> > online(I want to crop images which cannot be determined before hand,so >> I >> > cannot use resize function of numpy or cv2) ,I found there is no any >> > functions in theano to do the analogous thing. >> > >> > 在 2016年8月26日星期五 UTC+8下午2:37:31,[email protected]写道: >> > > >> > > I have a tensor (2,3,640,480),it is probablely 2 images,and i want to >> > > resize it to a tensor of dimsion(2,3,200,200). >> > > Is there any function can help me? >> > > >> > >> > -- >> > >> > --- >> > You received this message because you are subscribed to the Google >> Groups "theano-users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> Pascal >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
