Code Monkey home page Code Monkey logo

clearcanvas's Introduction

ClearCanvas

Open source code base for enabling software innovation in imaging. The extensible and robust platform includes viewing, archiving, management, workflow and distribution of images as well as an open architecture for core competency tool development.

How to build using Github For Windows

Read this section if you intend to build the ClearCanvas projects only, and read the section on Preparing clones for forked contributions in addition to this section if you intend to make code changes you want to share.

  1. Download Github for Windows and install it.
  2. Using Github for Windows clone the ClearCanvas/ClearCanvas repository to your local drive, for example, into ....Documents/Github/ClearCanvas.
  3. Using Github for Windows clone the ClearCanvas/ReferencedAssemblies to your local drive, for example into ....Documents/Github/ReferencedAssemblies.
  4. Using a command-line window, create a symbolic link within the ClearCanvas directory called "ReferencedAssemblies" that points to ..\ReferencedAssemblies. In Windows 7, the command-line to do this is mklink ReferencedAssemblies ..\ReferencedAssemblies
  5. Load the ImageViewer/ImageViewer.sln into Visual Studio.
  6. Build.

Preparing clones for forked contributions

If you intend to make changes to the code and contribute it to the ClearCanvas (upstream) repository, then you must first use Fork on Github.com to create a clone of ClearCanvas/ClearCanvas on Github.com. The ClearCanvas/ClearCanvas repository itself is moderated and you will not be able to automatically publish your changes to it.

Therefore,

  1. Use Fork on Github.com to create a clone of ClearCanvas/ClearCanvas. For example, to yourUserName/ClearCanvas.
  2. If you intend to make changes to the ClearCanvas/ReferencedAssemblies, make a fork/clone of this repository as well. Otherwise, it is unnecessary to do so.
  3. Download Github for Windows and install it.
  4. Using Github for Windows clone the yourUserName/ClearCanvas repository to your local drive.
  5. Using Github for Windows clone the yourUserName/ReferencedAssemblies repository to your local drive if you have forked it on Github, otherwise, simply clone the repository from ClearCanvas/ClearCanvas to your local drive.
  6. Create a symbolic link so that ReferencedAssemblies can be referenced from within your ClearCanvas directory.

You are now ready to make changes to the code in your private fork/clone.

clearcanvas's People

Contributors

cycc19 avatar jasper-yeh avatar resnickj avatar stevewranovsky avatar stewartbright avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clearcanvas's Issues

Importing bitmap as 16 bit image

Hi,

I'm having trouble trying to import a bitmap as 16 bits.

I tried modifying the code from the ImportFromBitmap plug-in but can't seem to get it to work...

private static byte[] GetMonochromePixelData(Bitmap image, out int rows, out int columns)
{
rows = image.Height;
columns = image.Width;

            //At least one of rows or columns must be even.
            if (rows % 2 != 0 && columns % 2 != 0)
                --columns; //trim the last column.

            int size = rows * columns * bitsPerPixel / 8; // Correct Pixel Data length
            byte[] pixelData = MemoryManager.Allocate<byte>(size);
            int i = 0;

            for (int row = 0; row < rows; ++row)
            {
                for (int column = 0; column < columns; column++)
                {
                    pixelData[i++] = image.GetPixel(column, row).R;
                }
            }

            return pixelData;
        }

Regarding MPR

in MPR, if a single line changes in leftimagebox every images in imageboxes need to change, and reslice in MPR is not activate

Is Single ClearCanvas EXE/MSI/SETUP execute on different platform?

Hi,

I am one of developer that have following question regarding the Clear Canvas EXE/MSI/SETUP.

Will we need to make different EXE/MSI/SETUP for 32 bit and 64 bit Machines/Platform like XP and Window7?

OR

Did single Clear Canvas EXE/MSI/SETUP is run on both ie 32 bit and 64 bit Machines/Platform?

Thanks

Automation with asp.net application

I implemented automation with our desktop RIS application. next task will be do the same thing in a asp.net application. I have searched CC and didn't find very helpful info, can xome expert post some example code here? such as launch viewer from asp.net page and open a study.

by the way, it seems automation can only open study on local, I noticed that CC says if the default imageserver is CC ones, open study which on remote should be OK by automation. However my test fails.

Thanks
seagull,

Problem with cc code

Problem :

1、cc Can't loaded one thousand images ?the memory is bigger
2 、I want to Load in real-time, real-time display,how can i do ?

please tell me ,how can i resolve these problem ?

thank you

How To Execute 32 bit ClearCanvas MSI on 64 bit Windows 7

Hi,

We have developed ClearCanvas MSI in Window XP(32 bit) machine using NSIS script.

Its working fine on all the 32 bit Machine.When we tried to executes on Window 7(64 bit) Machine it raised following error message.

'A platform mismatch has been detected'

For 64 bit machine I have following questions,
How to run 32 bit MSI on 64 bit machine? OR
Will we need some different process to develop 64 bit MSI?
We are waiting for reply.

Thanks

MultiframeTrueColorSecondaryCaptureImageStorage problem

Hi all
I Have a fully functional setup with visualstudio2010 and is running ClearCanvas.Dicom.Samples.

Trying to send an image from a Philips EBW to the StorageSCP function in the Sample program.
Everything is working OK, but the transfer of MultiframeTrueColorSecondaryCaptureImageStorage with the DicomUID = 1.2.840.10008.5.1.4.1.1.7.4 is failing. No useful information’s in errorlog
Can anyone help me out???

Best Jesper

Automation Viewer Management

I have written automation application to synchronize ClearCanvas with our RIS. Whenever the user selects a new study to dictate in the RIS, ClearCanvas shows the study (if it is local). This works well, but keeps opening new viewer windows. I have written code to CloseAllViewers(). What I really want though is to just close the currently selected viewer and display the current study in a new viewer window. The user will perceive this as the active viewer just displaying whatever study they select -- instead of accumulating viewers.

I can get a list of currently active viewers, but I don't see how to determine if a viewer is the current foreground viewer.

I'm examining the CC source code, but if anyone wants to help out with the intended approach, I appreciate it.

RW

Could not load file or assembly 'log4net, Version=1.2.10.0 ...... and System.OutOfMemoryException

Hello, I am doing some basic reading of DICOM attributes across a large number of files, and also using log4net to help track down where the exceptions are occuring. Reading some files causes the exception below. The required log4net version seems to be 1.2.10.0, however the version supplied in the downloadable ReferencedAssemblies is 1.2.11.0, which is what my code is using.

System.TypeInitializationException: The type initializer for 'ClearCanvas.Common.Platform' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at ClearCanvas.Common.Platform..cctor()
--- End of inner exception stack trace ---
at ClearCanvas.Common.Platform.Log(LogLevel category, String message, Object[] args)
at ClearCanvas.Dicom.DicomFile.Load(Stream iStream, DicomTag stopTag, DicomReadOptions options)
at ClearCanvas.Dicom.DicomFile.Load(DicomTag stopTag, DicomReadOptions options)
at ClearCanvas.Dicom.DicomFile.Load(DicomReadOptions options)
at ValueReport.ValueReportProcessor.LoadDicomFile(String file) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 50
at ValueReport.ValueReportProcessor.processFile(String file) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 56
at ValueReport.ValueReportProcessor.doIt(String[] dicomFilePaths) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 87

Also..

two 'System.OutOfMemoryException' are thrown before the log4net exceptions begin (the DICOM files are approx 350MB - so this question may lead to another, about how to handle these large ultrasound files):

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at ClearCanvas.Dicom.IO.ByteBuffer.CopyFrom(Stream s, Int32 count)
at ClearCanvas.Dicom.IO.DicomStreamReader.Read(DicomTag stopAtTag, DicomReadOptions options)
at ClearCanvas.Dicom.IO.DicomStreamReader.Read(DicomTag stopAtTag, DicomReadOptions options)
at ClearCanvas.Dicom.IO.DicomStreamReader.Read(DicomTag stopAtTag, DicomReadOptions options)
at ClearCanvas.Dicom.DicomFile.Load(Stream iStream, DicomTag stopTag, DicomReadOptions options)
at ClearCanvas.Dicom.DicomFile.Load(DicomTag stopTag, DicomReadOptions options)
at ClearCanvas.Dicom.DicomFile.Load(DicomReadOptions options)
at ValueReport.ValueReportProcessor.LoadDicomFile(String file) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 50
at ValueReport.ValueReportProcessor.processFile(String file) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 56
at ValueReport.ValueReportProcessor.doIt(String[] dicomFilePaths) in c:\Users\100037813\DEV\SVN_SRC\dihard_trunk\ValueReport\ValueReportProcessor.cs:line 87

ClearCanvas WebStation - source is missing

Got the latest ClearCanvas code which is in VS 2010 format, both the ImageViewer and ImageServer projects compiled fine. I am looking to run the WebStation - the sliverlight viewer. I see ClearCanas recently removed the "Web" project from the 'ImageViewer' projects. I have the 'Web' project from an earlier download which contains the sliverlight client. I would like to run the latest code for rest of the application.

Could someone please help with a step by step instruction on how to compile, install & run the Silverlight application including any database/IIS setup. I never saw it in action..Want try to loading a sample Dicom image into the web viewer.. if someone complied the latest source with the earlier webstation code that would be great too. Thanks !

Unable to run ClearCanvas.ImageServer.Web.Application

I build the code successfully but when I am running the ClearCanvas.ImageServer.Web.Application it giving me error "The assembly resolver has already been set."

Error Log showing -

The assembly resolver has already been set.

at ClearCanvas.Common.AssemblyRef.SetResolver(Func`2 assemblyResolver) in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\NamedObjectRef.cs:line 380
at ClearCanvas.Common.PluginLoader.LoadPluginInfo() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\PluginLoader.cs:line 93
at ClearCanvas.Common.PluginManager.LoadPluginInfo() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\PluginManager.cs:line 230
at ClearCanvas.Common.PluginManager.EnsurePluginInfoLoaded() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\PluginManager.cs:line 219
at ClearCanvas.Common.PluginManager.get_Extensions() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\PluginManager.cs:line 151
at ClearCanvas.Common.DefaultExtensionFactory.BuildExtensionMapOnce() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\DefaultExtensionFactory.cs:line 134
at ClearCanvas.Common.DefaultExtensionFactory.ListExtensionsHelper(ExtensionPoint extensionPoint, ExtensionFilter filter) in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\DefaultExtensionFactory.cs:line 110
at ClearCanvas.Common.DefaultExtensionFactory.CreateExtensions(ExtensionPoint extensionPoint, ExtensionFilter filter, Boolean justOne) in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\DefaultExtensionFactory.cs:line 64
at ClearCanvas.Common.ExtensionPoint.CreateExtensionsHelper(ExtensionFilter filter, Boolean justOne) in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\ExtensionPoint.cs:line 218
at ClearCanvas.Common.ExtensionPoint.CreateExtension() in E:\DICOM\ClearCanvas-master\ClearCanvas-master\Common\ExtensionPoint.cs:line 126
at ClearCanvas.Enterprise.Core.PersistentStoreRegistry.GetDefaultStore() in E:\DICOM\ClearCanvas-master\ClearCanvas\Enterprise\Core\PersistentStoreRegistry.cs:line 60
at ClearCanvas.ImageServer.Web.Common.HttpContextData..ctor() in E:\DICOM\ClearCanvas-master\ClearCanvas\ImageServer\Web\Common\HttpContextData.cs:line 36
at ClearCanvas.ImageServer.Web.Common.HttpContextData.get_Current() in E:\DICOM\ClearCanvas-master\ClearCanvas\ImageServer\Web\Common\HttpContextData.cs:line 54
at ClearCanvas.ImageServer.Web.Common.Modules.HttpContextDataManagementModule.EndRequest(Object sender, EventArgs e) in E:\DICOM\ClearCanvas-master\ClearCanvas\ImageServer\Web\Common\Modules\HttpContextDataManagementModule.cs:line 50
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Image Server showing Error-Streaming Error: 500 The I/O operation has been aborted because of either a thread exit or an application request.

When I am trying to open a study in CC workstation from a ClearCanvas Image Server, CC server throwing an exception "Error-Streaming Error: 500 The I/O operation has been aborted because of either a thread exit or an application request."

At viewer side
I am able to find study but response time is very slow and when I use to open study it open viewer but with message on viewer screen saying
"An error has occurred in the rendering pipeline. Reason: A network error occurred while streaming the image."

I google this error and I found number of different opinion. Now, I am confused completely.

Please help.

colormap plugin

Hello,

I am trying to test the colormap community plugin. I have downloaded the source code and built the unmodified solution. This results in the following files being placed into the bin/release directory:

Bootstrapper.exe
Bootstrapper.pdb
ClearCanvas.Common.dll
ClearCanvas.Desktop.dll
ClearCanvas.Desktop.Executable.exe
ClearCanvas.Dicom.dll
ClearCanvas.ImageViewer.dll
log4net.dll
Nullstack.ClearCanvasEx.ViewerEx.ColorMaps.dll
Nullstack.ClearCanvasEx.ViewerEx.ColorMaps.pdb
Nullstack.ClearCanvasEx.ViewerEx.FileOps.dll
Nullstack.ClearCanvasEx.ViewerEx.FileOps.pdb
Nullstack.ClearCanvasEx.ViewerEx.FileSetViewer.dll
Nullstack.ClearCanvasEx.ViewerEx.FileSetViewer.pdb

I have copied the Nullstack.ClearCanvasEx.ViewerEx.*.dll files into the ClearCanvas.Desktop.Executable/bin/release/plugins folder.

I then launch ClearCanvas.Desktop.Executable, however I don't see any additional functionality when right clicking the image viewer display, and the extension browser only lists

Nullstack.ClearCanvasEx.ViewerEx.FileOps
Nullstack.ClearCanvasEx.ViewerEx.FileSetViewer

I'd be most grateful for help..

ImageGraphic

Hi,

I need urgent help about rotating bitmap images on presentationImage. I tried to do it with Matrix but it didn't work:
Matrix mtrx = this.SpatialTransform.Transform; // here 'this' is ImageGraphic class that i used
mtrx.Rotate(30);
Any help on the issues is appreciated. Thank you in advance.

Regards,
Elif

How to create a ImageServer database

I got the latest source code. then in 'ClearCanvas-master\ImageServer\Model\SqlServer' there are two directories. which is UpgradeScripts and Scripts. how to use them to create a DB to run the ImageServer .
I get the tag 'master'

Can't set any ClearCanvas.Ris.Client.WebResourcesSettings

Hello,

i followed the RIS Build Guide and got problems with the paragraph "Further setup".
When I enter Tools/Utilities/Settings Editor I get this message

2
(Object reference not set to an instance of an object)

After I clicked on the "Import settings meta-data from local plugins" button everything runs fine, but after that there are no settings in the lower half available.

1

When I click on one of the two buttons (save all, reset all) in the settings editor, the CC client quits with this message.

3

Are there any suggestions?

My Logfile:
2013-05-14 18:57:01,094 [1] ERROR - Exception thrown

System.NullReferenceException: Object reference not set to an instance of an object.
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.LocallyInstalledGroup.<>c__DisplayClass33.b__30(<>f__AnonymousType02 p) at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.Group.get_Properties()
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.SelectGroup(Group group)
2013-05-14 18:57:56,607 [1] FATAL - Exception thrown

System.NullReferenceException: Object reference not set to an instance of an object.
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.LocallyInstalledGroup.<>c__DisplayClass33.b__30(<>f__AnonymousType02 p) at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.Group.get_Properties()
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.SaveModifiedSettings(Boolean confirmationRequired)
at ClearCanvas.Desktop.Configuration.SettingsManagementComponent.<.ctor>b__a()
at ClearCanvas.Desktop.Actions.ClickAction.Click()
at ClearCanvas.Desktop.View.WinForms.ActiveToolbarButton.<.ctor>b__0(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at ClearCanvas.Desktop.View.WinForms.GuiToolkit.Run()
at ClearCanvas.Desktop.Application.Run(String[] args)
at ClearCanvas.Desktop.Application.ClearCanvas.Common.IApplicationRoot.RunApplication(String[] args)
at ClearCanvas.Common.Platform.StartApp(ExtensionFilter applicationRootFilter, String[] args)
at ClearCanvas.Common.Platform.StartApp(String appRootClassName, String[] args)
at ClearCanvas.Desktop.Executable.Program.Main(String[] args) in c:\ClearCanvas\Desktop\Executable\Program.cs:line 64

ImageViewerSamples.sln build errors

image

I have first compiled ImageViewer.sln. Then when compiling ImageViewerSamples.sln, from unmodified source on 64 bit Windows 7, using Visual Studio 2010 Pro, I get these errors.

Unable to browse ImageServer WebApplication after publishing

Hi,

I have published ImageServer WebApplication in our local server, but after publishing, I cannot browse / run the application. Nothing is showing in IE and Chrome; but in mozilla it is showing "XML parsing error: no element found.

Thanks in advance
Siddhartha Saha

jpeg loosely compression issue

i have deployed imageserver but when trying to use Jpeg Extended i found error of not supporting 16 bit stored .
is there any way to change 16 bit stored to 12 or 8 before compression ?
if not is it available to add jpeg2000 compressor or any other compressor

CC 3D Visualizer

I have some questions regarding 3D visualizer.
1- What is the best way to implement a 3D visualizer using VTK in a new Workspace?
2- What are the projects/classes/interfaces that support 3D volume in CC?
3- Is there a way to access a Workspace from an unmanaged project?

Thank you.

can not view imported dicom files

Hi,

I built the applications from sources and tried to understand how the system works.
I started the following services successfully locally:

ClearCanvas.Ris.Server.Executable Server.Application
ClearCanvas.Server.ShredHostService.exe
ClearCanvas.ImageServer.ShredHostService.exe
I opened ClearCanvas.Desktop.Executable
I am able to import a directory in file system holding all CT, RS dicom files. From the Activity tab, it said "successful" with a green bar. But I can not see the imported patient. The memory I used does exceed the threshold.

For comparison, I downloaded clearcanvas desktop personal edition. After I imported the same directory, I was able to see the patient I imported right away.

I wonder what is the problem for the open source. Could anyone please help me on it? I have a deadline.

Thank you,
Stanford CancerCenter

SQLException while import

Hi,

I got an error message while importing. I ran the following servers and client on the same machine:
servers: ClearCanvas.Ris.Server.Executable Server.Application
ClearCanvas.Server.ShredHostServices

Client:ClearCanvas.Desktop.Executable

In my dicom file, the time format is yyyyMMdd. I checked the Date Format in Preferences is "yyyyMMdd".

The error message I got is as follow, Can anyone give me a hint how to fix it? Thank you.


"0 of 264 images processed, 264 failed[ApplicationException:Unexpected failure(SqlCeException: An overflow occured while converting to datetime.)]excuting command for Study:1.2.840.113619.2.55.3.4245295626.972.1366034797.537]

Here I copied part of ClearCanvas.Server ShredHostService.log:

Unexpected exception when processing file: C:\Documents and Settings\All Users\Application Data\ClearCanvas_Inc\ClearCanvas DICOM Viewer\filestore\1.2.840.113619.2.55.3.4245295626.972.1366034797.537\fb8210c8-14b8-4c54-bf39-94b696cec2b1.dcm SOP Instance: 1.2.840.113619.2.55.3.4245295626.972.1366034797.543.99
System.ApplicationException: Unexpected exception when processing file. ---> System.ApplicationException: Unexpected failure (SqlCeException: An overflow occurred while converting to datetime.) executing command for Study: 1.2.840.113619.2.55.3.4245295626.972.1366034797.537 ---> System.Data.SqlServerCe.SqlCeException: An overflow occurred while converting to datetime.
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
at ClearCanvas.ImageViewer.StudyManagement.Core.Storage.DataAccessContext.Commit()
at ClearCanvas.ImageViewer.StudyManagement.Core.Command.ViewerCommandProcessorContext.Commit()
at ClearCanvas.Dicom.Utilities.Command.CommandProcessor.Execute()
--- End of inner exception stack trace ---
at ClearCanvas.ImageViewer.StudyManagement.Core.ProcessStudyUtility.InsertBatch(IList1 list, StudyXml studyXml)
--- End of inner exception stack trace ---
at ClearCanvas.ImageViewer.StudyManagement.Core.ProcessStudyUtility.InsertBatch(IList1 list, StudyXml studyXml)
at ClearCanvas.ImageViewer.StudyManagement.Core.ProcessStudyUtility.ProcessBatch(IList1 list, StudyXml studyXml)
at ClearCanvas.ImageViewer.Shreds.WorkItemService.ProcessStudy.StudyProcessProcessor.ProcessWorkQueueUids(List1 sops, StudyXml studyXml)

EventsHelper is very slow

The method Delegate.DynamicInvoke is slow. Then the application become slow. For example, when I open images, the workstation take a lot of time on event trigger.

Calling Automation via jquery

Trying Automation with jquery, but return nothing. I guess data part in below code may wrong, please help.

function invokeService() {
$(document).ready(function () {
var aeTitle = "SERVERAE";
var patientId = "409900";

            $.ajax({
                type: "POST",
                async: "false",
                url: "http://127.0.0.1:51124/clearcanvas/ImageViewer/DicomExplorer/Automation",
                data: "{'AETitle':'" + aeTitle + "','PatientId':'" + patientId + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                processData: true,
                method: "SearchRemoteStudies",
                success: function (result) {
                    AjaxSucceeded(result);
                },
                error: function (retult) {
                    AjaxFailed(result);
                }
            });

        });
    }

FYI,
Test Automation by wcf test client tool, and it works. see below result.
capture

can not see the import dcm files

Hi,

I built the applications from sources and tried to understand how the system works.
I started the following services successfully locally:

  1. ClearCanvas.Ris.Server.Executable Server.Application
  2. ClearCanvas.Server.ShredHostService.exe
  3. ClearCanvas.ImageServer.ShredHostService.exe

I opened ClearCanvas.Desktop.Executable
I am able to import a directory in file system holding all CT, RS dicom files. From the Activity tab, it said "successful" with a green bar. But I can not see the imported patient. The memory I used does exceed the threshold.

For comparison, I downloaded clearcanvas desktop personal edition. After I imported the same directory, I was able to see the patient I imported right away.

I wonder what is the problem for the open source. Could anyone please help me on it? I have a deadline.

Thank you,
Lina

How to start with ClearCanvas?

Hi every one,
I want to develop a program based on Clear Canvas SDK 2 SP.1
I have my own GUI based on windows Form applications and I just want to brign CC functionality into my application. I've developed Tools, components, views and even a launch - like "Text Editor" example at "Putting it all together" section. Now the issue is how to call these application? better to say how to inter-connect it into my GUI?

Thanks in advance

GitHub ClearCanvas Version

Which version of ClearCanvas Workstation is supplied on GitHub? Current ClearCanvas Version is 7.1.10562.12083
Thank you

Question about installer using Trunk

Hi,

Few years back for version 2.0 to make the installer we need to download the Trunk
from url,
https://trac.clearcanvas.ca/source/wiki/SvnSourceCodeTree

and there are the files for installer like ,

..\Trunk\Distribution\Installers\NSISIncludes and
..\Trunk\Distribution\Installers\NSISPlugins

Today I have downloaded the latest code-base from ,
https://github.com/ClearCanvas/ClearCanvas#readme

I have not found installer system like Trunk in to this code-base

Can you please give me answer of following question?

[1] Current/latest codebase have Trunk like system for installer or not?

If not then,

[2] How to make the installer(steps) ? OR
Will we need to download just like Trunk from any url?

Thanks
Sanjog

How to activate any Measurement Tool from code

I am trying to activate some buttons from the toolbar (ruler, rectangle ROI, ellipse, etc) without clicking with the mouse, but I do not find how to do it.

Could anyone help me with this issue?

Thanks in advance

EDIT;

I answer myself. Hope this can help to someone else

var actionLine = base.Context.ImageViewer.ExportedActions.First(a => a.ActionID == "ClearCanvas.ImageViewer.Tools.Measurement.RulerTool:activate") as IClickAction;

if (actionLine != null) actionLine.Click();

error build ris.proj and problem in creating database script

Hi,

I work for Stanford Radiation Oncology department.
I am working on a web-based DICOM viewer project that can show CTs, RTstructure and Radiation doses. I would like to develop on top of ClearCanvas.

I followed the following link to build client, server and create database:

https://github.com/ClearCanvas/ClearCanvas/wiki/Building-the-RIS-from-source

But I ran into the following problems:

  1. I run msbuild ris.proj with VS2010 command prompt, it gave me error:
    "C:\ClearCanvas\ClearCanvas\Ris\ris.proj" (default target) (1) ->
    "C:\ClearCanvas\ClearCanvas\Ris\Server\RisServer.proj" (default target) (24) ->
    "C:\ClearCanvas\ClearCanvas\Ris\Server\RisServerCodeGen.proj" (default target)
    (25) ->
    (BuildSolution target) ->
    C:\ClearCanvas\ClearCanvas\Ris\Server\RisServerCodeGen.proj(4,5): error MSB30
    73: The command "codegen-gen.bat" exited with code 1.

(When I run msbuild ris.proj in VS2005 command prompt, it gave me the error:
Target BuildSolution:
C:\ClearCanvas\ClearCanvas\Ris\Client\RisClient.sln(2): Solution file er
ror MSB5014: File format version is not recognized. MSBuild can only read solut
ion files between versions 7.0 and 9.0, inclusive.
Done building target "BuildSolution" in project "RisClient.proj" -- FAILED.

So I think maybe RisClient.proj is created with newer version. I then used VS2010 instead.)

I looked into codegen-gen.bat and find it uses ruby, so I downloaded ruby and run again.
I still got the same error.

2 . I created a new database Ris in SQL server 2005. I run the following command:
ClearCanvas.Ris.Server.Executable DdlWriterApplication /out:db.sql
in /Ris/Server/Executable/bin/Debug directory. I got the following error:

C:\ClearCanvas\ClearCanvas\Ris\Server\Executable\bin\Debug>ClearCanvas.Ris.Serve
r.Executable DdlWriterApplication /out:db.sql
2013-06-12 15:30:32,328 [1] DEBUG - Loaded plugin ClearCanvas.Enterprise.Hiberna
te.DdlWriter.dll
2013-06-12 15:30:32,390 [1] ERROR - Exception thrown
System.NotSupportedException: No extensions found for extension point ClearCanva
s.Enterprise.Core.PersistentStoreExtensionPoint, or the extensions could not be
instantiated. Please see the log for more information.
at ClearCanvas.Common.ExtensionPoint.AtLeastOne(Object[] objs, Type extension
PointType)
at ClearCanvas.Common.ExtensionPoint.CreateExtension()
at ClearCanvas.Enterprise.Core.PersistentStoreRegistry.GetDefaultStore()
at ClearCanvas.Enterprise.Hibernate.DdlWriter.DdlWriterApplication.WriteOutpu
t(TextWriter writer, DdlWriterCommandLine cmdLine)
System.NotSupportedException: No extensions found for extension point ClearCanva
s.Enterprise.Core.PersistentStoreExtensionPoint, or the extensions could not be
instantiated. Please see the log for more information.
at ClearCanvas.Common.ExtensionPoint.AtLeastOne(Object[] objs, Type extension
PointType)
at ClearCanvas.Common.ExtensionPoint.CreateExtension()
at ClearCanvas.Enterprise.Core.PersistentStoreRegistry.GetDefaultStore()
at ClearCanvas.Enterprise.Hibernate.DdlWriter.DdlWriterApplication.WriteOutpu
t(TextWriter writer, DdlWriterCommandLine cmdLine)

Can anyone help me on this?

Thank you,
Lina

ClearCanvas UI Problem

problems:

  1. clearcanvas how to solve a background thread to update the UI controls ?
  2. UserControl how get WM_DEVICECHANGE message In clearcanvas, I tried to override the WndProc method, but does not work ?

please help me!

thanks!

unable to import

Hi,

I follow the instruction and able to run ClearCanvas.Ris.Server.Executable Server.Application

I opened ClearCanvas.Desktop.Executable, I opened "File->Explorer", I browsed a directory in my computer, right click and import, but I got an error "Failed to import the selected items because the local services are not running. Please ensure the ClearCanvas DICOM Viwer shredHost service is running or contact your system administrator for assistance".

I wonder where I can register the services that I'd like to run and how to set up Dicom viwer ShredHost service running.

Thank you,
Lina

Dicom Print

Is there a sample that shows how to call the Dicom print SCU?

When debugging imageserver, what is default login name and password?

1.launch imageserver on debug mode with vs2012
2.enter admin as username and 1234 as password

result,
Access denied. The user credentials may be invalid or the account may be disabled.

checked connection string and it look good. Data Source=127.0.0.1\SQLEXPRESS;User ID=sa;Password=clearcanvas;Initial Catalog=ImageServer

CultureAndRegionInfoBuilder could not be found

I am trying to build ClearCanvas on OSX with MonoDevelop 2.8.8 but I receive the following error. I have checked that sysglobl.dll is included.

GlobalizedCultureAttributeTests.cs(33,33): Error CS0246: The type or namespace name `CultureAndRegionInfoBuilder' could not be found. Are you missing a using directive or an assembly reference? (CS0246) (ClearCanvas.Dicom)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.