sreekanth Posted October 4, 2014 Report Share Posted October 4, 2014 Hello I got a image editor VI that performs various color assignments (RGB) to the single image on different combinations. I want to modify it in such a way that I can select a certain portion(ROI) and assign a combination(eg;RG) on that part and select another ROI and assign diffrent combination (RB) etc... Output image should contain an image with different combinations on selected parts. Is it possible??? Jpeg Color Editor.vi Quote Link to comment
hooovahh Posted October 7, 2014 Report Share Posted October 7, 2014 You are going to want to learn how to use the event structure. Your code continually regenerates the images with no wait in the while loop. This will consume tons of CPU resources for no reason if the user isn't interacting with the controls. Using an event structure will also have better response time for large images. I loaded a large image and tried to exist and I had to wait several seconds for the final conversion to complete. Using an event structure it will be immediate if nothing else is being done at that time. Is there a reason all subVIs and primitives have their labels shown? Is there also a reason all labels are bold? The value of Off Channels also doesn't change within the loop, so there is no need to continually read its value and become a FF or a 0. The error data type can have boolean operations like Not operated without having to pull out the Status. As for your questions, (sorry it took so long to get to that). The IMAQ image code has many more tools for doing ROI on sections. The IMAQ tools for ROI are free to download, but to do any manipulation with that image using the ROI you'll need the vision toolkit which isn't free. I added a quick Image Subset to your program but I doubt it is fully what you want. You may be able to get away with using multiple image subset and stitching them together. Attached is my updated version using the changes I mentioned. Jpeg Color Editor Hooovahh Edit.vi 1 Quote Link to comment
sreekanth Posted October 9, 2014 Author Report Share Posted October 9, 2014 Thank you Mr. hoovahh for your effort in help. while programming I will keep in mind your suggestions I need one more help. Apart from this VI in my application I want to call and display image from a folder in a timely manner, such as Images should be changed (refreshed) one by one in a timely manner,say an interval of 10 sec.I saw your VI in the forum for calling images from folder but how can it be altered in a timely manner. Quote Link to comment
hooovahh Posted October 9, 2014 Report Share Posted October 9, 2014 Set a timeout in the event structure, and drop down an Elapsed Timer express VI. This will tell you if some amount of time has gone by. If it has get the next image which should be the next index in an array of file paths. Quote Link to comment
sreekanth Posted October 9, 2014 Author Report Share Posted October 9, 2014 Sorry Mr. Hooovah. I didn't understand what you are saying Quote Link to comment
JKSH Posted October 22, 2014 Report Share Posted October 22, 2014 Sorry Mr. Hooovah. I didn't understand what you are saying The documentation explains more: Event Structure: http://zone.ni.com/reference/en-XX/help/371361L-01/glang/event_structure/ Elapsed Time Express VI: http://zone.ni.com/reference/en-XX/help/371361L-01/lvexpress/elapsed_time/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.