Monitoring progress when performing filter operations on images

Hi,
I am working on Java2D and making some image filters using classes like ImageFilter etc. Now For simple filters I want to get the progress status while the filteting is in progress, so that I can show a progress bar in the GUI.
For this I do not have much idea. I think we can use the ImageConsumer interface, so that if the class implementing that interface list itself as an image consumer with the filter operation. Here is two way I have tried implanting this:
1st way:
Class MyConsumer implements ImageConsumer
int width,height;
int percentProgress;
Public image processImage(Image srcImage, ImageFilter filter){
FilteredImageSource fis: new FilteredImageSource(srcImage.getSource(),filter());
//should we do this?
fis.addConsumer(this);
//or this?
srcimage.addConsumer(this)
Image destImage = this.createImage(fis);
return destImage;
//implementing methods of imageConsumer
//we get the width and height of the new destImage (or do we get the dimension of the srcImage here??)
public void setDimensions(int width, int height){
this.width=width;
this.height=height;
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize){
// Is this the correct way of obtaining the progress????
progressPercent=(y*100)/height;
//We also have empty implementation of other ImageConsumer methods after this
--------------------------------------------------------------2nd way, let?s say we use a smooth filter and replace the processImage(..) method above with the one below (the other methods being same):
Public image processImage(Image srcImage){
float[] SHARPEN3x3 = {      0.f, -1.f, 0.f,
                            -1.f, 5.0f, -1.f,
                            0.f, -1.f, 0.f};
BufferedImage dstbimg = new
              BufferedImage(iw,ih,BufferedImage.TYPE_INT_RGB);
Kernel kernel = new Kernel(3,3,SHARPEN3x3);
ConvolveOp cop = new ConvolveOp(kernel,
                                ConvolveOp.EDGE_NO_OP,
                                null);
//should we do this?
dst.addConsumer(this);
//or this?
srcImage.addConsumer(this);
cop.filter(srcImage,destImage);
return destImage;
}Now I do get a progressPercent. But when the percent is 100%, the destimage does not return, that means the operation is not yet complete.
So is this the correctw ay, or is there any other way to know the progress of the flter operation.
Also I extended the ImageFilter class and overrode its setPixel method as:
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize){
int progressPercent=(y*100)/height;
System.out.println("progress in image filter:"+progressPercent);
//I simply print out the progress and let the super perform the filter operation
super.setPixels(x, y,w, h, model, pixels, off, scansize);
//should I do this below? This calls the imageconsumer's setpixels
//that I implement in the MyConsumer class
consumer. setPixels(x, y,w, h, model, pixels, off, scansize);
}I observe that the setPixel method of MyImageFilter is called several times even for the same scan lines, and even after percentProgress is 100%, the process runs again for 2-4 times. So the filtering operation scans the lines several times to finally perform the filtering, and as such the percentProgress is incorrect.
Can anybody guide me. Is this approach okay and needs to be modified a bit, or there is a different approach to obtain the progress from a filter operation?
I would finally want the same progress from other operations like LookupOp, ConvolveOp, AffineTransformOp, ColorConvertOp, RescaleOp.
Thanks in advance
Tanveer
DrLaszloJamf, are you there? I am sure you are one of them who can help me in this.
anyone can send me a private message too at [email protected]

Please somebody let me know how to get the progress of imagefilter operation using convolveOp.filter(...) or Filteredimagesource. I waant to display the progress i a JProgressbar.

Similar Messages

  • SE 3.0 periodically crashes when performing simple operations.

    During or just after many simple operations, like opening a new Data View, or dragging data from one window to another, or just moving a cursor, SE will periodically crash.  I'm running SE 3.0 on Windows XP.  My .seproj file is 9 MB.

    Hi AEI, Thank you for using our discussion forums.
    Red flags went off in my head when I read that your project file is 9MB.  To me that seems really big, and I would like to know if the project you are using is the source of the crashing, or is it the SE installation.  Do you experience the crash if you open a new project, or does it only happen with the large project file?  If you are only getting the crash with your project then there may be something wrong with it.
    If you experience the crashes regardless of which project is loaded, then the installation may be corrupt.  You can try a few things.  First repair the Signal Express installation from add remove programs.  If you are still getting crashes, then I would suggest uninstalling all of DAQmx, and signal express and then reinstalling the latest DAQmx, which installs SE. 
    Just for my information, which version of DAQmx and what OS are you using. 
    Chris
    National Instruments
    Applications Engineer

  • QuickTime 7 error: changes duration when performing Add and Scale

    Sometimes, when using "Edit - Add to Selection & Scale" to place an image over a portion of a movie, QuickTime Player 7 will incorrectly change the duration of the movie, sometimes increasing the time by HOURS!
    This may be an old problem, but I couldn't find any mention of it in the past year on the forum.
    To make it easy to reproduce, I created the following AppleScript. Usually I can only get 5 to 10 iterations before failure.
    (* Demonstrate QuickTime bug
    This script demonstrates an error that QuickTime Player 7 commits when adding an image to a movie.
    (This error also occurs when performing this operation manually, but it's faster to use AppleScript to demonstrate it.)
    R. Lougheed, December 2010
    set maxTestCount to 90 -- QuickTime has a limit of 99 tracks
    set sampleMovie to (choose file with prompt "Select a movie" default location (path to movies folder) without invisibles)
    tell application "QuickTime Player 7"
    activate
    close every document saving ask
    open sampleMovie
    set movieRef to (a reference to document 1)
    -- get a frame to paste in
    tell movieRef
    set movieDuration to duration
    tell me to set midTime to round (movieDuration / 2)
    set current time to midTime
    copy
    end tell
    end tell
    set inTime to round (movieDuration / 3)
    set outTime to 2 * inTime
    set successCount to 0
    set newMovieDuration to movieDuration
    repeat until ((newMovieDuration ≠ movieDuration) or (successCount > maxTestCount))
    with timeout of (1 * hours) seconds -- default timeout is 2 minutes
    tell application "QuickTime Player 7"
    activate
    tell movieRef
    select at inTime to outTime
    add with scaled -- this should NOT change the duration of the movie
    set newMovieDuration to duration
    if newMovieDuration = movieDuration then set successCount to successCount + 1
    end tell
    end tell
    end timeout
    end repeat
    activate
    if newMovieDuration = movieDuration then
    display dialog ("QuickTime Player successfully ran " & successCount & " Add-with-scale operations.") buttons {"Great!"} default button 1
    else
    display dialog ("QuickTime Player erroneously changed the movie duration after " & successCount & " successful operations.") buttons {"Bummer"} default button 1
    end if

    Thank you very much Hiroto !! But I've still some issue that I can't resolve by my self...
    I don't understand how to take this script (who works very well) and to use it in a different file. Actually, I wanna ask this script by 6 different other applescript file with a different movie (one in English, one in French, one in German, one in Dutch, one in Spanish and one in Italian). So I try an applescript like this :
    set FR to LancerFilm()
    tell FR
    quitQT()
    set x to "/Desktop/Robin.des.bois.2010.DVDrip.VF.XVid.avi"
    setFilm(x)
    startFilm()
    end tell
    I tried this code at the end of the file who contains the main script and in an other file. For the first one, I receive an error message who says me : +Can't find the file /Desktop/Robin.des.bois.2010.DVDrip.VF.XVid.avi+. And for the second one (wich is the solution that I wanna have for the final script), the system says me : +<<scrip>> doesn't understand the message LancerFilm+.
    If somebody can help me it will be awesome.
    I have an other question. At the end of the movie what must I do to launch another movie, automatically (so in the same script) in loop ?
    PS: Sorry for my pour English

  • Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation it gives me an input/output error and stops. Any tips?

    Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation and after having selected both my destination and source drives, the operation begins but soon fails due to input/output error. If I try to create an image of the drive it gives me the same error message. Any help would be much appreciated.

    Disk Utility only creates a image of the drive, so it's no help getting exactly what you want, which is your files. If the file structure is messed up or the drive is failing then it's no help.
    If you have a external boot drive and you can't access the internal non-booting drive though the typical Finder and windows to transfer your files via drag and drop methods, then you need to install Data Rescue on the external boot drive and it will do as best as it can to recover your files. (works on non-encrypted/non-Filevaulted drives only)
    .Create a data recovery/undelete external boot drive
    Are you sure you have hard drive failure, or that OS X isn't merely not booting?
    Because if the drive is working physically, then there is a host of fixes
    ..Step by Step to fix your Mac
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/

  • Lightroom 5.4 jumps to second monitor when attempting to edit an image in Photoshop CS 6.

    Hello,
    I have a brand-new HP z620 with an Nvidia Quadro K 4000 display adapter and apparently a software and/or hardware conflict.
    I am experiencing an issue with Lightroom 5.4 window not working correctly with my second, not primary, monitor. When Lightroom is working on the second monitor and I need to edit an image in Photoshop cs6, I want Lightroom stay where it is and Photoshop to open on my primary monitor. And this has worked well for me on my previous system which was also a Windows 7 64-bit machine with an Nvidia GeForce GTX 570.
    When I click the Lightroom option to "edit in Photoshop CS 6” The Lightroom window will move itself to the primary monitor for no apparent reason. This is the problem I am seeking to remedy.
    No other external editing programs opened through LR behaves this way, such as NIK or OnOne Perfect Photo Suite, and I really need LR to stay on the second monitor on the extended desktop.
    I’ve tried every monitor cabling setup I could think of to try and even unplugging the primary to make windows identify it as the 2 monitor in the screen resolution settings, but that does nothing for me. My new workstation is running the same OS version and a K4000. Monitors are currently connected to the display ports via dp to dvi adapters. I’ve already tried moving the connections around and plugging one into dvi, there doesn’t seem to be a setting I can change within windows or adobe to change this behavior.”
    On a related note, I have similar instability in software made by X-rite that supports the use of a colorimeter allowing me to build profiles for monitors and evaluate colors precisely. During the profiling process I place the colorimeter in the designated place on the secondary monitor and direct the application to begin showing the colorimeter different colors on that monitor. At this point the colors jump to the primary monitor while the rest of the interface along with the colorimeter is a secondary monitor. I have a workaround that I'm using for this particular problem but I am fairly sure that the issue that causes the problem with Lightroom is also the source of my trouble here and I need to eliminate it.
    thanks for your time,
    Larry Garvey

    Change the sort order. View->Sort

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • When I try to sync my IPOD (3rd gen) on ITunes, I receive the following error message - you don't have enough access permissions to perform this operation

    When I try to sync my IPOD (3rd gen) on ITunes, I receive the following error message - you don't have enough access permissions to perform this operation..can anyone assist?

    See:
    iPhone - not enough access privileges: Apple Support Communities

  • Possible to bypass monitor profile when displaying image?

    After importing a large photo library into Aperture I noticed that when viewing images, they would  change color and in a little under a second the colors looked significantly less "colorful and rich" than before. Sounds "subjective" but it really is not.  There is definitely a transformation going on and the colors consistently become duller on every image viewed.  It is especially noticeable in a album of images taken in the fall using a circular polarizer where the colors looked really great to begin with and then extremely dull after the transformation.  I deleted all of the preview images and set aperture to not regenerate them.  Still, same issue occurred.  The issue occurs with both RAW and jpg images.
    In Canon Image Browser on the Mac colors look great.  It's easy to do an A to B comparison of the same file and see that it looks better in every case.
    But what I've discovered is that I can get the same "dulling" result to occur using Canon's Image Browser 6.x software just by setting one option.
    There is an option checkbox in Preferences that is disabled by default to "Adjust Image Colors Using A Monitor Profile."  Prior to setting that option, the colors looked great, just like they looked on the camera LCD, and they same as they look on my PC also using Canon Image Browser software and Irfan view.  The rich colors seen when not using monitor profile also match what I see in Safari, Chrome, and Internet Explorer browsers.
    In Canon Image Browser when I set the checkbox to "Adjust Image Colors Using A Monitor Profile" the colors become very muted.  They look identical to what I see in Aperture.  Also, I can get the same effect to occur on the PC version of Canon Image Browser.  Microsoft's "Windows Photo Viewer" seems to be monitor profile aware as it shows the same dull colors.  "Windows Photo Viewer" offers no option that I can find to improve the look of the color.  Maybe this is what you want if you're trying to print your images and have them match exactly what is seen on screen.
    I have found that with Photoshop CS5 I can export a jpg to tiff which strips out the color space information and then voila the image "pops" when I bring it into aperture and looks the way it does in Canon Image Browser without using monitor profile.  In fact you can really then compare within Aperture how big the difference is between the two, and the only thing I did was resave the image to a new file format without doing anything else in photoshop.  It's not feasible to resave evertthing as tiff though.
    So my main question is, is there a way within Aperture to bypass the monitor profile so I can see the images with the same colors as they are rendered in the majority of the other tools I use.

    I've done some additional testing on a jpeg image.
    Test 1:
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is unhecked
    Photoshop CS5: "View/Proof Setup" is set to "Monitor RGB"
    Aperture: "Onscreen Proofing" enabled and set to "Generic RGB"  Additionally I've tried every other color profile available
    Result: The colors look identically rich on Photoshop and Canon Image Browser.  Aperture is the only tool I can't get to align with the rich colors.
    Test 2
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is checked.  Restart the software to apply change.
    Photoshop CS5: "View/Proof Setup" is set to "Internet standard sRGB"
    Aperture: "Onscreen Proofing" enabled and set to "sRGB"
    Result:  The colors match on all 3 tools.  The color are very noticeably less rich than in Test 1.
    I went ahead and previewed the image in the browsers on the Mac.  Chrome and Firefox showed the color the same as Photoshop and Canon Image Browser did in Test 1  which looks better in my opinion.
    For Safari color looks the same as Test 2.
    Also Apple Preview looks the same as Test 2 no matter which soft proofing setting is applied.
    I believe Adobe and Canon have the correct behavior and show either richer or duller colors depending on which "proofing" mode they are in.  Only aperture so far cannot be made to do the richer colors.

  • The current user has insufficient permissions to perform this operation when trying to add Term stored managed navigation.

    Hi,
    i am getting this error "The current user has insufficient permissions to perform this operation." when trying to add the Term store managed navigation like the following screen shot. i am the Farm
    administrator and as well managed services account. also noticed, cannot delete the service application, saying you don't have enough permission to delete the db. but using this account i was able to do everything before in my environment. is anyone already
    face this kind of error, so what will be the way to resolve this?
    Appreciated!

    event though its a farm admin,It should provide the access to MMS.please find the below link for more details and the solution for the issue.
    Go to SharePoint Central Administration Site –> Application Management –> [Service Applications] –> Manage service applications
    2.   Highlight the Managed Metadata Service that your web application is associated with. (Do not click on the link, just click somewhere else on that row to highlight it)
    3.   Click on Permissions button in the ribbon area.
    4.   Add the application pool account used by your web application and give it  ‘full Access to Term Store’
    5.   Click OK.
    http://expertsharepoint.blogspot.de/2014/08/managed-metadata-service-or-connection.html
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Keep Receiving: Error is: 'Insufficient access rights to perform the operation' When running script

    Hello. I have a powershell script I run in our domain to disable AD accounts. Part of that also removes the users from all AD groups. That part of my script however keeps throwing up this Error is: 'Insufficient access rights to perform the operation'
    error. 
    Now from our Exchange server if I run this script with powershell, things work fine. But running it on the domain controller is when I get this error. Thoughts? 

    Thanks Anna!
    I was able to add this code below in to the script where it kept erroring out and it then worked. I had to point it to a different DC then it was running on. 
    –Server comp1.test.server.com
    Thanks again!

  • When I add a photo filter to an image, I can't use the color sampler in the photo filter dialog box. It automatically selects white. What am I doing wrong?

    Whenever I add a photo filter to an image, I can't use the sampler tool that automatically appears when you open the photo filter dialog box to manually select the color of your filter. Whenever I try to use it, it automatically selects white (#ffffff), no matter where I click in the image. Does anyone know what I'm doing wrong?
    Thanks

    When you add an adjustment layer, the layer mask is automatically active. You need to activate the pixel (image) layer by clicking on it in the Layers panel.

  • HT1386 When I try to sync with my iPad it says that I do not have enough access privileges to perform this operation.  Please help!

    When I try to syn either my iPhone or iPad it says that I do not have enough access priveleges to perform that operation.
    Please advise.

    Read http://support.apple.com/kb/TS1387

  • Errors when trying to mosaic compressed images

    I am trying to load georaster data into Oracle 11g 11.2.0.2. I was successful then doing this by using the following steps:-
    - SDO_GEOR.IMPORTFROM
    - sdo_geor.mosaic
    However when I try to compress the images as JPEG-B I get an Oracle error when performing the mosaic operation.
    ORA-13485: error occurred during compression or decompression: lossy then something related to colormaps.
    Has anyone ever seen a similar error.
    These are the scripts.
    set serveroutput on size 1000000;
    set timing on;
    LOAD
    -- THE SDO_RASTER TABLE HAS TO BE UNIQUE IN THE ENTIRE DATABASE
    DROP TABLE GEO_25K PURGE;
    DROP TABLE RDT_25K PURGE;
    CREATE TABLE GEO_25K ( ID NUMBER PRIMARY KEY,
         SOURCE_FILE VARCHAR2(80),
         DESCRIPTION VARCHAR2(32),
         GEOMMBR SDO_GEOMETRY,
         GEORASTER SDO_GEORASTER);
    CREATE TABLE RDT_25K OF SDO_RASTER
         (PRIMARY KEY (RASTERID, PYRAMIDLEVEL, BANDBLOCKNUMBER, ROWBLOCKNUMBER, COLUMNBLOCKNUMBER))
         LOB(RASTERBLOCK) STORE AS (NOCACHE NOLOGGING);
    CALL SDO_GEOR_UTL.CREATEDMLTRIGGER('GEO_25K','GEORASTER');
    -- IMPORTFROM DOES NOT SUPPORT JPG ONLY TIFF, GIF, BMP AND PNG
    -- SET TIMING ON IN SQLPLUS TO SEE HOW LONG THE LOAD TAKES
    -- 28 X JPG CONVERTED TO TIFF REPRESENTS 1.93GB ON DISK AND 2286MB IN THE DB AND TOOK 1 HOUR 11 MINUTES TO LOAD
    DECLARE
         TYPE FILE_LIST IS TABLE OF VARCHAR2(200);
         files FILE_LIST;
         geor MDSYS.SDO_GEORASTER;
    BEGIN
         dbms_java.set_output(1000000);
         get_dir_list('/PRLR01/fssa01/RASTER/LOAD/');
         FOR i in ( SELECT rownum,FILENAME from dir_list where FILENAME like '%TIF' )
         LOOP
              dbms_output.put_line(i.FILENAME);
              dbms_output.put_line(SUBSTR(i.filename, 1, LENGTH(i.filename)-4) || '.TFW');
              INSERT INTO GEO_25K VALUES (i.rownum, i.filename, '', null, MDSYS.SDO_GEOR.INIT('RDT_25K', i.rownum));
              SELECT GEORASTER INTO geor FROM GEO_25K WHERE ID = i.rownum FOR UPDATE;
              MDSYS.SDO_GEOR.IMPORTFROM(geor, 'compression=JPEG-B', 'TIFF', 'FILE', i.FILENAME,
                   'WORLDFILE', 'FILE', SUBSTR(i.filename, 1, LENGTH(i.filename)-4) || '.TFW');
              UPDATE GEO_25K SET GEORASTER = geor WHERE ID = i.rownum;
              SELECT GEORASTER INTO geor FROM GEO_25K WHERE ID = i.rownum FOR UPDATE;
              MDSYS.SDO_GEOR.SETRASTERTYPE(geor, 21001);
              UPDATE GEO_25K SET GEORASTER = geor WHERE ID = i.rownum;
              SELECT georaster INTO geor FROM GEO_25K WHERE id = i.rownum FOR UPDATE;
              sdo_geor.setModelSRID(geor, 81989);
              UPDATE GEO_25K SET georaster = geor WHERE id=i.rownum;
         END LOOP;
         COMMIT;
    END;
    MOSAIC
    set timing on;
    --After the GeoRaster are loaded you may want to set the appropriate SRID if this was not set correctly.
    --SELECT sdo_geor.validateBlockMBR(georaster), id FROM GEO_25K;
    --select id, sdo_geor.getModelSRID(georaster) from GEO_25K;
    --Then you need to validate the GeoRasters to see if they have been setup correctly.
    --SELECT t.id, sdo_geor.validategeoraster(t.georaster) isvalid from GEO_25K t order by id;
    --After you have loaded all the georasters, iSMART will pick up each row of the georaster as an individual layer so you need to create a mosaic layer or table
    drop table GEO_MOSAIC_25K;
    drop table RDT_MOSAIC_25K;
    CREATE TABLE GEO_MOSAIC_25K ( ID NUMBER PRIMARY KEY,
    SOURCE_FILE VARCHAR2(80),
    DESCRIPTION VARCHAR2(32),
    GEOMMBR SDO_GEOMETRY,
    GEORASTER SDO_GEORASTER);
    CREATE TABLE RDT_MOSAIC_25K OF SDO_RASTER
    (PRIMARY KEY (RASTERID, PYRAMIDLEVEL, BANDBLOCKNUMBER, ROWBLOCKNUMBER, COLUMNBLOCKNUMBER))
    LOB(RASTERBLOCK) STORE AS (NOCACHE NOLOGGING);
    call sdo_geor_utl.createDMLTrigger('GEO_MOSAIC_25K','GEORASTER');
    DECLARE
    gr sdo_georaster;
    BEGIN
    insert into GEO_MOSAIC_25K (id, georaster)
    values (1, sdo_geor.init('RDT_MOSAIC_25K'))
    returning georaster INTO gr;
    sdo_geor.mosaic('GEO_25K', 'georaster', gr, '');
    update GEO_MOSAIC_25K SET georaster=gr where id=1;
    commit;
    END;
    --Then you need to validate the mosaic.
    -- SELECT sdo_geor.validateBlockMBR(georaster), id FROM GEO_MOSAIC_25K;
    SELECT t.id, sdo_geor.validategeoraster(t.georaster) isvalid from GEO_MOSAIC_25K t order by id;
    --The in order to achieve real performance you need to pyramid the mosaic raster. If you don't specify a pyramid level then you oracle will calculate it.
    --If you have set them max resolution to this layer using the Oracle calculated value will produce too many pyramid levels, you need to calculate how many pyramid value you will need
    --See URL for Pyramiding http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28398/geor_intro.htm#CHDDEGJJ
    DECLARE
    gr sdo_georaster;
    BEGIN
    SELECT georaster INTO gr
    FROM GEO_MOSAIC_25K WHERE id = 1 FOR UPDATE;
    -- Generate pyramids.
    sdo_geor.generatePyramid(gr, 'rLevel=5, resampling=NN');
    -- Update the original GeoRaster object.
    UPDATE GEO_MOSAIC_25K SET georaster = gr WHERE id = 1;
    COMMIT;
    END;
    quit
    These work fine until I include 'compression=JPEG-B'
    Cheers,
    David

    Check document:
    1.10.2 DEFLATE Compression of GeoRaster Objects
    DEFLATE compression compresses objects according to the Deflate Compressed Data Format Specification (Network Working Group RFC 1951), and it stores the compressed data in ZLIB format, as described in the ZLIB Compressed Data Format Specification (Network Working Group RFC 1950). The ZLIB header and checksum fields are included in the compressed GeoRaster object.
    Although DEFLATE compression is supported for GeoRaster objects of any size, the total size (columnsPerBlock * rowsPerBlock * bandsPerBlock * cellDepth / 8) of each block of the GeoRaster object must not exceed 1 gigabyte (GB). For large GeoRaster objects, you can call the SDO_GEOR.changeFormatCopy procedure to block the GeoRaster object into blocks smaller than1 GB, and then compress the GeoRaster object; or you can perform the blocking and compression in the same call to the SDO_GEOR.changeFormatCopy procedure.
    Because DEFLATE compression is lossless, compression quality does not apply, and is ignored if it is specified.
    compression
    Specifies the compression type to be applied to the GeoRaster object. Must be one of the following values: JPEG-B, JPEG-F, DEFLATE, or NONE. (You can use NONE to decompress a compressed GeoRaster object.) If compression is not specified, the compression type of the source GeoRaster object is used. For more information about compression and decompression, see Section 1.10. Example: compression=DEFLATE

  • How to remove "Blue filter" from multiple images in the History Panel

    I am using Lightroom 4.3 on Windows 7 pc.  I have a collection with approximately 650 images.  I was working in the collection and had all the images selected.  Somehow I inadvertently must have hit a keyboard shortcut that effected all the images.  All of the images are negatively effected and they now look terrible.  When I go to the History Panel, all the images have "blue filter" as their most recent entry.  If I select one image and go back to the step before the "blue filter" everything looks fine  again.  My problem is I have this effect in 650 images.  When I try and do the change in one image and then synch to the rest, I don't know what box to check to remove this "blue filter" that has been added to all the images.  I know I can do them one by one, but with 650 images, it's a long and tedious process.  Any way I can remove the "blue filter" from multiple images in a collection?
    Thanks,
    Matthew Kraus

    If you’ve just done it, then an Undo operation would reverse things on all the images, I think.  But if it took you a while to see the problem, then you might have done something to cancel the undoability.
    Isn’t Blue Filter a built in LR preset that modifies the HSL settings:  http://kb2.adobe.com/community/publishing/924/cpsid_92473.html
    Open the HSL panel and step back into History on one of the affected images so the effect of the Blue Filter preset has been undone and notice what HSL sliders change, and then if the 650 images DON’T already have any HSL adjustments you should be able to sync JUST the pre-Blue-Filter HSL adjustments (perhaps all zeros) to the other 650 images.

Maybe you are looking for