Hi, does anyone know a free .NET crypter/protector? My problem is, that there are many free obfuscators I could use, but with obfuscation all the code (also in Log and Tracefiles) is blurred and our developement team is no longer able to assigne the error codes to a function. So, does anyone know of a possibility to obfuscate code without blurring special function names? A tool, which just obfuscates the "in-function" code like algorithms? Or is there maybe a completely different solution for my problem? Thanks for any advice! Cheers, cheery
cherrymotion
Posts
-
.NET code protection -
RST Template MatchingFirst of all: Thanks Tim for the time you spent on the answers! I appreciate that very much. You gave me some interesting issues to think about. I hope, you'll do further well with the cones and the Robots ;-)
-
RST Template MatchingYes, you're right. It's not necessary for me to find my template in a bigger image. I just thought about the fact you mentioned, to find some simple objects on which I can relocate the image. I know the OpenCV template matching functions, they do pretty well. But they are only for translation invariant pictures, so I need something to find to rotation angle. The OpenCV template matching only uses some correlation or square difference techniques. I only can use them in the case my image is rotated the right way. I also observed, that there's some optimization space in the OpenCV functions, as you said. How did you locate the traffic cone? How did you find the rotation angle respective scaled cones? I'd be happy if you could just tell me the keyword of the technique, something I could research... For now, I only read about techniques of that log-polar stuff and similar things in frequency domain. I wonder now if there could be another way to relocate the rotation/scalation. So far, thanks Tim!
-
RST Template MatchingThanks for the quick answer! Sounds not too bad :-) My aim is to do a print quality inspection respective a defect detection on prints. The images may surely be up to 800x600 pixels (also smaller). I'll be working on RT VxWorks on an x86 Target. Nothing too special. The quality inspection is done on i.e. business cards, label or something in bank note size. I want to "learn in" a good template, to which following images are being compared. Images are being acquired quickly from a camera and have to be matched as fast as possible. I thought, if the search angle and the scale factor are limited, the computation can get pretty acceptable. But I'm not sure which method to focus: -The log-polar transformation seems interesting, but I'm not sure if that obtains acceptable computation times. 30 frames per second would be quite ok! -Circular/Radial filter seems more complex and intensive and is maybe not the right approach here?! In principle I do not have to find multiple templates in the images. I just want to relocate the inspection image to fit to the template and then find out the defect pixels (correlation)! Just a little scalation has to be considered (5%). Maybe template matching is the wrong approach because most template matching algorithms search for multiple occurences of small objects. Or am I though right with my thoughts? bye, cherry
-
RST Template MatchingHi there, Does anyone know if there's a possibility to implement a fast translation-, rotation- and scalation-invariant Template Matching application in native C++. I want to realize that task by using open-source libraries such as OpenCV and fftw. I just read about techniques with log-polar transformations or circular/radial filters to find the template location, after that I may need some kind of cross-correlation?! Has anyone other suggestions than that? And which one would be the fastest? I have to operate on realtime and I know, that this task is very computational intensive. But it's also ok to take a learning-phase with the template, in which some preparing computations can be done. I have also the possiblity to work on a limited factor size in rotation and scalation (maybe +/-10%). What would you recommend me to do or has anyone done a similar project? Or are there some good open-source libraries to manage that? I'd be happy about some suggestions! Thanks in advance! cherry
-
Insert and fill a table with high-performance [Word]Oh, if it would have been me who worked it faster, then I maybe wouldnt ask you ;-) Its kind of a challenge, the fastest makro wins. It not only this table, but this table is the part that costs me the most computation time. I only know, that it would eventually be faster, if you set up the table step by step. But I don't know how to do it best and I don't think of this as a great idea. So far, thanks. cherry
-
Insert and fill a table with high-performance [Word]Thanks for your answer. But it is not what I'm looking for. The problem is: I know this works usually much faster - the table gets inserted and filled in less than 2 seconds - there has to be another way and sadly I'm totally new to VB. I would be happy if someone had another tweak for me... Thx cherry
-
Insert and fill a table with high-performance [Word]Hello, my aim is to insert a table with 100 rows and 2 cols at the end of a document. Next I have to fill every row with a random font-name in the first column and a formatted text with that random font in the second column. A font-type must not be repeated within the next 10 rows. So here is a code, that does exactly that thing, but I want to find a more performant solution - maybe someone could help me how to optimize it. I know that there are much better ways how to solve this problem, thats why I ask. Thanks in advance for taking the time, cherry
'Set Range to end of document
Dim where As Range
Set where = ActiveDocument.Range(ActiveDocument.Range.End - 1, ActiveDocument.Range.End - 1)'Insert table with 100 rows and 2 cols Set tablewith\_different\_styles = ActiveDocument.Tables.Add(where, 100, 2, \_ DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:=wdAutoFitFixed) 'Loop 100 times for each Font i = 0 g = 1 Do While i < 5 Do While g < 21 'Got to table row i, col 1 tablewith\_different\_styles.Cell((i \* 20) + g, 1).Select 'Set random font Selection.Font.Name = FontNames(g + 20) 'Save random font Name\_Font = Selection.Font.Name 'reset font for next output Selection.Font.Name = "Courier New" Selection.Font.Size = 9 'Insert font name and iterate to next line Selection.TypeText Text:=Name\_Font Selection.MoveRight Unit:=wdCell 'set font and size Selection.Font.Name = FontNames(g) Selection.Font.Size = 9 Selection.TypeText Text:="My Formatted Text in every Row." g = g + 1 Loop g = 1 i = i + 1 Loop
-
Bitmap-Stride a multiple of 4? [modified]Hi there, In my project I'm creating a Bitmap from a char-ptr (as Scan0 IntPtr). Now the bitmap (->the char ptr) gets a changed size as a single region of the image ist cut out. If the stride is not a multiple of four, the createbitmap function causes an exception! Now what can I do? I have no possiblity to change the incoming char-ptr (because I get it sent on my interface). If I calculate the next %4 stride value and use it, my bitmap isn't displayed correctly. BTW: It's a monochrome image with a manually assigned MonoPalette, 1 BytePerPixel: Format8bppIndexed Thanks for always helping me so much! Special thanks to NAVANEETH!:rose: ************************************************ A little side question: From time to time my windows forms application is hanging in a strange way. I make a snapshot of a bitmap and display it in one of the two picture boxes. Now when I drag my mouse down on the forms, i. e. to maximize/minimize the form, there is no reaction and the application "hangs". My app is not run as an exe, it's loaded as a DLL from a superior application. It also occurs, that I am in the "main app" to calculate the image, then call the forms DLL to display it, but I do not get the "forms application" (although it is loaded) popped up from the task bar. Usually I have to click on the "forms app" in the taskbar -> then send an image from the main app -> and then the forms project gets popped up (you see, by aiming to popping it up before). But that is crap and shouldn't behave that way!
modified on Friday, September 11, 2009 8:39 AM
-
Graphics Object on indexed BitmapHi there, I have a huge problem with Graphics Object. My application shows pictures in a picturebox. Now I want to draw multiple frames (rectangles) onto the shown image (regions of interest). The most easy and acceptable way is to create a graphics object from the image and do the drawRectangle function on it. If the image is scaled or zoomed the rectangle(s) will always grow and shrink in same relations! this is very important! Problem: My bitmap is format8bppindexed with a monochrome colorPalette added by myself, so I isn't possible to create a graphics object! It's very important, that I can refresh the images as fast as possible (best with just changing the scan0 pointer). Is there a possible way to get a graphics object from such an image? Or has anyone an idea how I could come up with that rectangle drawing thing? I would be so happy about a good answer! Thanks and have a nice day...
-
Mixed DLLHi! I'm referring on the article Calling Managed Code from Unmanaged Code and vice-versa[^], where callback functions in managed C++ code is called from unmanaged code using delegates. On that way I have programmed a Windows Forms GUI, whose functions are delegated to unmanaged (because I had an unmanaged Interface to implement). The whole marshalling is done in one VS-project. Now I want to compile it as DLL and call the unmanaged functions to control the GUI: PROBLEM: To initialise the callbacks the first thing to do is to call managed code to activate the delegates and so the callbacks. Now it would be nice to do that in the DLL-main function (entry point). But it is not possible to call managed code in DLL main, what should I do? I want to initialize the callbacks on DLL loading, so that the functions are directly useable. Any idea? Thanks, cherry
-
Label flickeringHi, I started the backgroundworker doing his work, and from the DoWork-Event, I called timer->start(); but somehow the timer starts never. In the timer_Tick event I always update my label, I got you right?! But as I said, the Tick() event is never reached, altough I started the timer. Do I have to do something else with the backgroundworker? An own thread?
-
Label flickeringNo, not all controls can be double buffered. As I tried to enable double buffering on that label, compiling error C3767 "Candidate Function Not Accessible" appears. I just can assign doublebuffering to the whole control (it's a control library project), but that has sadly no effect on the flickering. I also have tried your second hint, the comparison has also no effect and the fact is, that I have to update, because in every loop there's number incremented, which I want to display. So at least the text of the label MUST be changed. Nevertheless, thank you! Maybe you come up with a further issue.. ;)
-
Label flickeringHi again, I tried many things now, but nothing worked. The question isn't really difficult. I have a Status_line label which is actualised circa 20 times a seconde. In that label is always the actual running number written. But I do not get rid of that horrible flickering! I tried already to doublebuffer, but it seems to work only on Graphics. The writing function has to take the textcolor, backcolor and string as parameter, so I cannot statically DrawString on the label graphics. Isn't there a way to prevent that flickering? Thanks! cherry
-
UnlockBits releases my Byte-ArrayThanks a lot you people! I'm very happy of always getting such good answers. Respect, for me you are number #1 in the web! On Topic: I'll test your way to create bitmap tomorrow, it's late in europe right now ;-) It looks good, but I remember some problems as I wanted to get it done like that. The cam I use is a monochrome Leutron PicSight P52M-USB, and the only way I get monochrome Bitmaps done is to assign the Format8bppIndexed - which further made some problems in resizing, so that I have to work with a temp-Image. I'm not happy with that, but I didn't get a better way yet. I'd be more happy with not having to work with marshaling between managed and unmanaged. But my company has "old" native interfaces (one for graphic, one for cam), which must not be changed. So I had to delegate all function (the way I got it done is also from codeproject) - but it seems to me as a not very stable solution, to call a managed GUI in creating a thread from native and so on... Maybe someone wonders about an odd comment, please let me know. I may be on the wrong way somewhere... Thanks again for your time, bye!
-
UnlockBits releases my Byte-ArrayThanks so far, I describe my problem a little bit more exactly: As soon as my camera has taken a new picture, I get a BYTE- (or char)-pointer of it. This happens in unmanaged code, but it's no problem to delegate it to managed. Now I create my bitmap like that: myBitmapData = myImage->LockBits(*myRect,WriteOnly,Format8bppIndexed); myBitmapData->Scan0 = myBytePtr; myBitmapData->Stride = iImageWidth*iImagePlanes; myImage->UnlockBits(myBitmapData); The final call of UnlockBits makes my BYTE pointer to an undefined value, so if this Function is called again (and it has to be called again to define the new Bitmap) without a new Image was taken, the function gets an empty pointer and crashes. Is there no possibility to keep that pointer? Or would anyone of you even create that bitmap some other way? I'm not sure if this method is a good one... I'd be happy for some hints! Thanks
-
UnlockBits releases my Byte-ArrayHello, is there any way, that the UnlockBits-Method doesn't release my byte-pointer, when I created an image from it? The byte-pointer, that I give to the Bitmapdata Scan0 value, is contains always after the "UnlockBits"-Method an . But I have to do further operations on that pointer. Is there a way to keep track of that pointer or am I doing something wrong? Tanks in advance, cherry
-
Size of LabelsThanks Dybs, that might help - I just thought it could be made more nicely. Something like autosizing with setting the anchors to all sides... Thanks and bye! :)
-
Size of LabelsHi! I have a windows forms control of the following type with 4 Labels in it: ***************************** *label1......*label2........* ***************************** *label3......*label4........* ***************************** Each oft the labels has to fill exactly one quarter of the whole form, because the background color of the labels is changed at runtime and it doesn't look good if the color fills just the back oft the text. Labelproperty autosize seems like a simple solution, but if i set it, the label is always just as big as the text is. Without autosize, it looks not bad, but I don't get it to split in the center. It looks like that: ******************************* *label1...............*label2 * *label3...............*label4 * ******************************* The rightern labels don't grow with the control, the remain on rightern side in their usual size. Anyone an idea? Thanks, cherry
-
Resizing of Labels in ControlsOk, I have it now. Something went wrong with my Auto-Size properties. But can anyone tell me how to find out from the Control.Resize-Event, with which factor the Form has been resized? I have to calculate the space for my pictures an let them dynamically grow and shrink, but for that I'm sure there is an opportunity to get that factor, isn't it? Otherwise maybe I should save a rectangle with the current form size and set it then in relation to the "grown" window parent. But a "resize-factor" would be much nicer I think... Thanks for your answers, sometimes it is not easy :)