On Thursday 07 November 2013 18:09:38 Gene Heskett did opine:

> On Thursday 07 November 2013 17:44:39 Frederic RIBLE did opine:
> > Le 2013-11-07 22:01, Gene Heskett a écrit :
> > > Thats exactly what I am looking for. ultil.crop, I don't recall
> > > seeing a mention of. Is there a man page describing it?
> > 
> > I have discovered that this feature was existing when analyzing
> > camview source tree !
> > Below is my camview config file. "util.crop" is not far from the the
> > middle. As far as I remember, this module is not installed by default
> > with camview-emc package.
> > You will have to build from source code and install it manually.
> > After that, it will appear in the panel of camview configuration tool.
> > I have connected the zoom ratio to a slider panel with a custom cam.ui
> > and camview-emc Python script.
> > 
> > <?xml version="1.0" encoding="utf-8" ?>
> > <chain>
> > 
> >      <unit id="input.v4l2:0" width="1280" height="720"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="1280x720 RGB 24bpp">
> > 
> >          <control id="input">0</control>
> >          <control id="standard">0</control>
> >          <control id="brightness">133</control>
> >          <control id="contrast">5</control>
> >          <control id="saturation">83</control>
> >          <control id="auto-white-balance">1</control>
> >          <control id="control-9963800">1</control>
> >          <control id="control-9963802">4500</control>
> >          <control id="control-9963803">25</control>
> >          <control id="control-9963804">0</control>
> >          <control id="control-10094850">156</control>
> >          <control id="control-10094856">201600</control>
> >          <control id="control-10094857">201600</control>
> >          <control id="control-10094858">27</control>
> >          <control id="control-10094860">0</control>
> >          <control id="control-10094861">0</control>
> >      
> >      </unit>
> >      <unit id="convert.to_rgb8" width="1280" height="720"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="1280x720 RGB 24bpp">
> > 
> >      </unit>
> >      <unit id="util.crop" width="459" height="258"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="459x258 RGB 24bpp">
> > 
> >          <control id="ratio">0.358943</control>
> >      
> >      </unit>
> >      <unit id="output.opengl" width="459" height="258"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="459x258 RGB 24bpp">
> > 
> >      </unit>
> >      <unit id="emc.halio" width="459" height="258"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="459x258 RGB 24bpp">
> > 
> >          <control id="limit">4</control>
> >          <control id="reload">0</control>
> >          <control id="circle">video.circle</control>
> >          <control id="axis-pins">halui.axis.%d.pos-relative</control>
> >          <control id="axis-letters">XYZA45678</control>
> >          <control id="axis-format">%.3f</control>
> >          <control id="spacing">5</control>
> >          <control id="color-r">1</control>
> >          <control id="color-g">1</control>
> >          <control id="color-b">1</control>
> >          <control id="gl-xor">0</control>
> >      
> >      </unit>
> >      <unit id="emc.crosshair" width="459" height="258"
> > 
> > pixelformat="CAM_PIXEL_FORMAT_RGB" format_name="459x258 RGB 24bpp">
> > 
> >          <control id="enable">1</control>
> >          <control id="color-r">1</control>
> >          <control id="color-g">0.902174</control>
> >          <control id="color-b">0</control>
> >          <control id="gl-xor">0</control>
> >          <control id="circle-radius">100</control>
> >          <control id="circle-angle">0</control>
> >          <control id="shape">1</control>
> >      
> >      </unit>
> > 
> > </chain>
> 
> Got a puzzler, util.crop does not get a hit that looks right from
> google.
> 
> However in camunits/0.0.37 tree there is a convert_crop.c that looks
> like a likely candidate.  Is this the util you are referring to?
> 
> I don't think it was built by the default Makefile but have not studied
> it yet.
> 
> Thanks Frederick.
PS, a make bails instantly in that camunits/0.0.37 subdir, seems that are 
include dependencies not supplied by 10.04.4 or in the tarball.

First one is FreeImage.h, and apt can't find the package that supplies 
that.

Thanks again.
Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

"Life would be much simpler and things would get done much faster if it
weren't for other people"
                -- Blore
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to